My requirement is i need to add a dom variable to queue to use dom variable in another flow. i have successfully updated the dom to queue deserealizing the dom and adding the jobject in queue instead of DOM type
But i need to use dom in another flow so when i get the queue item it is giving as jobject type i need to convert this to domtype any idea how we can achieve this
Regards
Sreejith S S
Ok so i am uploading the json to queue and while getting the queue items i need to convert this json to DOM so i can give the dom variable in wait for document validation action and resume activity. but how to convert this json to DOM using deserealize .
The desearilize activity only expects input and input argument type and its expected output is jobject and i am not getting the desired dom output
Hi @Anil_G Actually i need to store Dom variable in queue and access this queue item later in the workflow but i am not able to directly write the dom to queue so i have converted the dom to json and uploaded in queue.
Later in the workflow i am using wait for document validation action and resume activity.
In this activity i need to pass the dom object which is as json in the queue item so i need to convert this josn to DOM type before using in the Action
as mentioned above this we do with Deserialization and parse the JSON into the dedicated DataType (DOM in your case)
We assume that the Dom was serialized, when needed and its JSON representation is not grabbed in another way
e.g. with: Newtonsoft.Json.JsonConvert.SerializeObject(YourVar)