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
jayaram reddyjayaram 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
Gokula KrishnanGokula Krishnan
Hi Jayaram,

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.