DEV Community

Discussion on: Updating a Record Using C# .NET and the Salesforce REST API

Collapse
 
yucked profile image
Yucked

Cheers. Another thing I noticed. .Result can in some cases cause deadlocks, iirc. I would change method signature to asynchronous Task and await everything within methods body. Along with wrapping HttpRequestMessage in a using statement or simply using var request Update = ....