Hi,
I have been working with the work item queue example (provided as a helper project) and in addition of the workitem, I would like to map a variable (received from the workitem payload) to JObject to be more easy to manipulate in the workflow.
The workitem.payload looks like
payload: {
"credentials": {
"username": "example",
"password": "123"
}
}
The payload from the queue is passed as an object, but the credentials is passed as an string. I can access to the value in the workflow using this expression:
JObject.Parse(workitem.payload("credentials").ToString())("username").ToString()
But It’s very tedious to convert every time I want to use some value from my payload, for that reason I was looking to map it to JObject in the Invoke OpenRPA activity, but I am getting next error:
Any idea about how to handle it?
Thanks