Set API variable for "RUNASUSEREMAIL" to "USEREMAIL()"

Hi,

I am using the api to copy child rows of data, however, at the moment the app runs with the RUNASUSEREMAIL variable set to me. I would like to change it to the user who activates the workflow. How can I used the USEREMAIL() function in the API? What I have shown below doesn’t work.

{
“Action”: “Add”,
“Properties”: {
“Locale”: “en-GB”,
“Location”: “47.623098, -122.330184”,
“Timezone”: “Pacific Standard Time”,
“RunAsUserEmail”: "USEREMAIL()"
},

0 7 346
7 REPLIES 7
Top Labels in this Space