What is r­equ­est­orc­ont­ext and re­que­storid in setReq­ues­tor­Pro­fil­e(r­equ­est­orc­ont­ext­,re­que­storid) in RESTMessageV2 API?

Sukhbir Singh2
Giga Guru

What is r­equ­est­orc­ont­ext and re­que­storid in setReq­ues­tor­Pro­fil­e(r­equ­est­orc­ont­ext­,re­que­storid) in RESTMessageV2 API? How to use it, can someone give an example?I have a situation where i have to dynamically change the end point and oauth profile for making an API call? 

1 ACCEPTED SOLUTION

Sukhbir Singh2
Giga Guru

I figured it out:

r­equ­est­orc­ont­ext­ - table that stores rest message so, sys_rest_message

re­que­storid - sys_id of the rest message.

It worked !!

View solution in original post

1 REPLY 1

Sukhbir Singh2
Giga Guru

I figured it out:

r­equ­est­orc­ont­ext­ - table that stores rest message so, sys_rest_message

re­que­storid - sys_id of the rest message.

It worked !!