function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhijeet Ranade 2Abhijeet Ranade 2 

Salesforce and SendGrid integration

Can some one help with SendGrid integration.

I need help with the event integration of sendGrid where we expose our RestFul Service i mean the end point where sendGrid can post its event.
i have exposed a restful service and also tested my service with apijee by using the sample JSON provided by the sendGrid and it works perfect. the reason behind it is that apijee does provide an option of OAuth2 login which would again be your salesforce login.

But when i come to exposing my service to the SendGrid Event integration it is not able to hit.

I also created the OAuth Setting in SalesForce i was able to generate the Consumer key and Secret key.

The question lies how can i append these things to the URL as of mine http://na1.salesforce.com/services/apexrest/SendEventToMyOrg
so that it authenticates and and SendGrid able to hit the service and post the event JSON on to this service. i also need to know if i should directly append the secuirty token and if yes how should be the token generated.

Thanks in Advance.
Roger MorrisRoger Morris
Were you ever able to resolve this issue? I am working on connecting send grid and salesforce and have no idea where to begin or what the best method is to implement.