Question

I have written a webservice in .net that receive the outbound message from salesforce. With the Id received from the Salesforce outbound message, I want to query the related objects and its fields. Can I achieve this without salesforce authentication? With the session id I get from outbound message can I query the objects? I am confused. Please help me out.

Was it helpful?

Solution

Yes, you can. Use the server URL and the session ID that are sent with the outbound message to make partner API calls back into Salesforce.

You will not need to call login again on the partner API. Just set the session id in the header and send the requests to the server URL.

OTHER TIPS

To integrate Salesforce with .NET you can use for example ADO.NET Provider for Salesforce.

This is a commercial product, but it supports all the functionality you need:

  • authorization via Session Id
  • executing SQL queries to Salesforce objects and their fields
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top