You need to sign in to do that
Don't have an account?
jayaram reddy
how can i pass values dynamically in rest api url
Hi,
I want below url present i have passed date value, but i want pass date value dynamically in rest api url.
https://**************force.com/services/apexrest/argrc__Assessment__c/2017-10-12
I want below url present i have passed date value, but i want pass date value dynamically in rest api url.
https://**************force.com/services/apexrest/argrc__Assessment__c/2017-10-12
Try this,
String date = '2017-10-12';
String endPointURL='https://**************force.com/services/apexrest/argrc__Assessment__c/ '+ date ;
req.setendpoint(endPointURL);
Reference: https://developer.salesforce.com/forums/?id=906F0000000BC7CIAW
Thanks,
If it helps you, please mark is as best answer, so it will be helpful for other developers.