You need to sign in to do that
Don't have an account?
Nihon Taisai
External ID for @HttpPost in Apex REST
When we post a Box record we also send Id from another record (callout side) in External Id for Box record. How can we write this request in HttpPost code? Or we don't need it in HttpPost?
My code:
My code:
@HttpPost global static Box__c postBox(String title){ RestRequest req = RestContext.request; Box__c b = new Box__c( Title__c = title, ); insert b; return b; }
All Answers