How to add complex datatypes in Queues and how to get complex datatypes from Queues?
Add to Queue:
In Studio, import Newtonsoft.Json namespace
Serialize datatable using the following command (output string): JSONConvert.SerializeObject(dt)
Send the string to queue
Get the string from queue
Use Deserialize json activity (from Uipath.Web.Activities package) using TypeArgument DataTable property
Use the outputed datatable for your workflow.
Example: Sample workflow to add datatable to queue and retrieve the same. Note this workflow is being created in UiPath Studio version 2019.4.3. Hence, it can be opened with version 2019.4.3 or higher.
Click here to download