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
Ranadheer chRanadheer ch 

There is button name called as "create Member in sap" from account deatl page.

There is button name called as "create Member in sap" from account deatl page.in salesforce..so here that button will create the Member in sap once i ckick on that button....for this we have used the Skyvva integration suite from app exchange as managed  pakage.Now what my requirement is we are moving out of that skyvva ...and connecting with some middleware..so now we want to use the REST Base Api for this ..

Here how can i create a class with some end point(Rest) the class should hold the account id...

If there is class i can call that class in this button..




 
Sumitkumar_ShingaviSumitkumar_Shingavi
Your REST API have to have Account.Id or Account.SomeExternalField__c as parameter to REST Callout you making. This values might go in body of request or header of request. How to call REST from Apex:
1. https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http.htm
2. https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_http.htm