<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Create any type variable in a process</title><link>https://community.appian.com/discussions/f/process/24773/create-any-type-variable-in-a-process</link><description>Hi! I read it isn&amp;#180;t possible to create an any type variable in a process. This is my use case, I hope you can help me: 
 I need to pass a process an array of cdt, but it could be different types of cdt, and the process, depending of the cdt type writes</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/130305?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 13:51:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e38ebd04-0b04-4f4f-8eda-354fe9d3ad51</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Use maps to store dynamic data in process variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/130300?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 13:41:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33556f07-3c59-4f7d-bd28-d1f4f22f6bad</guid><dc:creator>pallavib0008</dc:creator><description>&lt;p&gt;Can you please explain more about this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/99749?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 06:33:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a71f54ed-0482-4ab6-8876-c158cd0d91de</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;This is a 3-month-old post. And we have a better data type now - a!map() &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f643.svg" title="Upside down"&gt;&amp;#x1f643;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/99747?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 06:23:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02103e4d-f2e5-4881-a358-908473cdef15</guid><dc:creator>sriramn</dc:creator><description>&lt;p&gt;You can create a process variable of type datasubset, save the values to this process variable and&amp;nbsp;cast it to&amp;nbsp;of required cdt type based on your need&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/95797?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 10:34:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e780835c-1bd5-4671-91c9-f75280d5262a</guid><dc:creator>harshjan</dc:creator><description>&lt;p&gt;You can use &amp;quot;type!&amp;quot; more, eg.&lt;/p&gt;
&lt;p&gt;I am casting &lt;span&gt;local!lookUp_cdt&lt;/span&gt; into &lt;span&gt;SOM_Lookup&amp;#39;()&lt;/span&gt; type. You can copy and pate into your rule and change the CDT name accordingly. Hpoe it will help.&lt;/p&gt;
&lt;p&gt;local!lookUp_cdt : &amp;#39;type!{urn:com:appian:types:SOM}SOM_Lookup&amp;#39;()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/95785?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 07:50:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2c0ac81-da4b-4cc2-94c4-285198fc46b9</guid><dc:creator>adriann0002</dc:creator><description>&lt;p&gt;This was my first guess but I need the type of my cdt to determine the table to write&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/95784?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 07:49:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d7473e8-0374-4aee-aa12-4562f0b3a8cb</guid><dc:creator>adriann0002</dc:creator><description>&lt;p&gt;I think I resolved it, with typeof() i get the type of the CDT in a number, then i pass to the process a text variable with the value ToJson(pv!mycdts) and typeof number. In the process with a script task I do cast( typeofnumber , fromJson(pv!mycdts)) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create any type variable in a process</title><link>https://community.appian.com/thread/95783?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 07:46:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6171a8bc-5048-414e-8e6b-16d8469b5b21</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;You could use a Map() type to hold an array of different arrays of CDTs).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>