Notifications

640 views

How to reference form variables in a HTTP POST message 

 

Problem
The article addresses what function should be used to obtain values sent from a third-party integration that sends information through a HTTP POST request.

 


Resolution

Within the ServiceNow UI page, use RP.getParameterValue('<post_variable>').

 

For example, the UI page would contain:

<?xml version="1.0" encoding="utf-8" ?>

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<g:evaluate>

var _var1 = RP.getParameterValue("variable1"); //variable1 is one of the variables in the POST request to the instance

gs.log(_var1);

</g:evaluate>

</j:jelly>

Article Information

Last Updated:2015-06-12 10:59:56
Published:2015-06-12