We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How can we pass application variables to REST JSON body?

Accepted answer
21
Views
3
Comments
edited May 6, 2022 5:52AM in Visual Builder 3 comments

Summary:

Pass the logged in user to the REST api

Content (required):

Hi there,


I am new here and to VBCS. I have a REST api that I am trying to use with my POST method. I am trying to pass the $application.user.userid , which is the logged in user as a field in my json body to update the audit columns in my table. How can this be done?


JSON

{

“ inventoryid” : “1”,

”name”:”Brian T”,

”created by”: should be the value of my logged in user

}


Do I need to assign this as part of the action chain before calling the REST api on hitting the create button? Any pointers on how to do this?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!