- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2023 11:16 PM
We have a requirement to to call the system property (wich contains API and APP Key) into Rest Message hearder.
How to achieve this? Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2023 04:32 PM
Hi @Pratik Khamkar ,
You can pass the property value in a variable like below and then add this variable in your HTTP header
var restMessage = new sn_ws.RESTMessageV2('your REST message name', 'post');
restMessage.setStringParameterNoEscape('AppKey', gs.getProperty('system_property_name'));
If my answer has helped with your question, please mark it as correct
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2023 04:32 PM
Hi @Pratik Khamkar ,
You can pass the property value in a variable like below and then add this variable in your HTTP header
var restMessage = new sn_ws.RESTMessageV2('your REST message name', 'post');
restMessage.setStringParameterNoEscape('AppKey', gs.getProperty('system_property_name'));
If my answer has helped with your question, please mark it as correct
Thanks!!