How to set access token in Http Request

shaik23
Tera Expert

Hi all,

i have started exploring Integrations.

 

How to set access token stored in system properites in to Http request please guide me in detail.

shaik23_0-1755695181623.png

shaik23_2-1755695207668.png

 

shaik23_1-1755695202660.png

i have tried hardcode value in bearer its working i want them dynamically.

 

1 ACCEPTED SOLUTION

@shaik23 

Hope you are doing good.

Did my reply answer your question?

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

View solution in original post

15 REPLIES 15

@shaik23 

please share complete script.

Also the links I shared did you check?

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

@Ankur Bawiskar 
i am unable to understand with the links you shared

shaik23_0-1755774405325.png

How i have to pass the value from system properties here in variable 

@shaik23 

this link explains it well

Outbound REST interface in ServiceNow 

for you it will be like this

var restMessage = new sn_ws.RESTMessageV2('your REST message name', 'post');
restMessage.setStringParameter("accessToken", gs.getProperty('webex.access.token'));

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

@shaik23 

I believe I have answered your question and you can take it further from here.

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

@shaik23 

Hope you are doing good.

Did my reply answer your question?

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