Jobject to DOM Type

Hi all,

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

@sreejith.ss1

Welcome to the community

Can you please show what you have done and what conversions are done in code

cheers

DOM to JSON → Serializing
JSON to DOM → Deserializing

what was done for the second so far?

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

Give a try at:

  • set the TypeArgument to the DOM Datatype
  • use the serialized JSON String from the QueueItem (SpecificContent?)

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

@sreejith.ss1

Did you try with cast?

cheers

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)