How to change part of URL Dynamically for rest message?

Prathamesh Chav
Tera Contributor

Hi Team,

 

While performing I am able to fetch the static data, following is the example,

Just in place of XXX there is CRN number,

End Point :- 

https://InstanceURL/services/data/v58.0/query?q=SELECT+Apttus__FF_Agreement_Number__c,Apttus__Contra...'

 

I want to use script for this but before that I want to test this while sending the data from parameter / from variable,

I tried with both, but both are not working here,

only when I am passing the number in the URL its working.

I am trying with the sending parameter, below is the screenshot for that

PrathameshChav_0-1739523589607.png

This is the error I am getting

PrathameshChav_1-1739523656911.png

 

Also tried with sending value with variable

PrathameshChav_2-1739523803580.png

PrathameshChav_3-1739523845862.png

here in test run, in end point I can see exactly same URL which is used in Static value still giving the eroor,

 

can anyone help me in this?

 

 

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Prathamesh Chav 

are you saying you are not able to set the dynamic value in endpoint?

are you sure the endpoint is correct?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader