How can we pass application variables to REST JSON body?
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?
Tagged:
0