The request object is available to all rules and event handlers as the
Warning: Currently, Strings in the Request object are Java Strings internally. As a result, care must be taken when using
the same and will give possibly unexpected results.
For example, "GET" === req.verb will ALWAYS be false, where "GET" == req.verb will be true on a GET request.
The request object provides access to HTTP arguments. You can test these in your logic, which enables you particularize your update requests. See the giveRaise and deep copy examples.
Supply HTTP arguments like this:
Access them in your logic, like this:
In the following example, we get a users name via their login. The request object provides access to the
Note: for this to work in Logic Demo, you’ll need to update the APIKey for Broad Access to User Identifier
You can explore the req contents with code like this: