<?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>How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/discussions/f/data/11664/how-to-get-value-from-datasubset-passed-in-process-model-using-a-startprocesslink-function</link><description>Hello, 
 
 I working on an issue where I have a requirement to start a process model from interface which consists of start form. I have a array containing list of values like 
 
 local!keyValue: &amp;quot;Name:xyz;age:50,position:Development&amp;quot; 
 Now the interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51426?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2018 12:19:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5680585-746e-4047-a8b4-6b6f5fe5896c</guid><dc:creator>Josh</dc:creator><description>&lt;p&gt;Ah, then you may need to do some parsing of the string. Something like:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;with(
 local!string: &amp;quot;Name:xyz; age:50;position:Development&amp;quot;,
 local!pairs: split(local!string, &amp;quot;;&amp;quot;)
 local!fields: a!forEach(items: local!pairs, expression: split(fv!item, &amp;quot;:&amp;quot;)[1]),
 local!values: a!forEach(items: local!pairs, expression: split(fv!item, &amp;quot;:&amp;quot;)[2]),
 type!yourCDT(name: local!values[1], age: local!values[2], position: local!values[3])
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This example omits any type of error handling or optimization - just a simple example of how you can parse a string into a cdt type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51412?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2018 08:14:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c3c5406-e6bd-4f72-a233-948eed652e3e</guid><dc:creator>viveku3486</dc:creator><description>Hey Josh,&lt;br /&gt;
&lt;br /&gt;
I tried casting the &amp;quot;data&amp;quot; in the datasubset to a cdt type but its still not working properly. The main issue happening here is to separate variable and value from the string as both at the moment act as an string only.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51386?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:50:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ab64b1b-c6b7-48bb-ab3f-553bceeae06f</guid><dc:creator>Josh</dc:creator><description>I recommend casting your &amp;quot;data&amp;quot; in the datasubset to a cdt type and then you can easily index the values from your list.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51385?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:48:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9563a3aa-1c4c-427f-99ff-e23fdece94c6</guid><dc:creator>viveku3486</dc:creator><description>It gives a message i.e &amp;quot;List of Variant&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51384?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:44:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40c68593-2ab3-44ec-bfaa-863c1bb05686</guid><dc:creator>Josh</dc:creator><description>What happens if you do typename(typeof(index(ri!datasubset, &amp;quot;data&amp;quot;, {})))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51383?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:41:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:371c4249-a491-4885-bb78-a18489a7fc9f</guid><dc:creator>viveku3486</dc:creator><description>When I use index(ri!datasubset,&amp;quot;data&amp;quot;,{}), It show below values&lt;br /&gt;
&lt;br /&gt;
Name:xyz; age:50;position:Development&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51382?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:37:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c3b8caf-3e4b-40ff-96e1-ed4ecf66e4a2</guid><dc:creator>Josh</dc:creator><description>What shows up when you do index(ri!datasubset, &amp;quot;data&amp;quot;, {})?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51381?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:29:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6235039-9f52-4ac0-a797-0af85def2bc6</guid><dc:creator>viveku3486</dc:creator><description>Hi Josh,&lt;br /&gt;
&lt;br /&gt;
The additional attributes are already configured. When I&amp;#39;m just printing the value of ri!datasubset it executes fine and give me the below result&lt;br /&gt;
&lt;br /&gt;
[startIndex=1, batchSize=-1, sort=, totalCount=3, data=Name:xyz; age:50;position:Development, identifiers=1; 2; 3]&lt;br /&gt;
&lt;br /&gt;
but when I&amp;#39;m using index(ri!datasubset.data,&amp;quot;Name&amp;quot;,{}) it simply came up blank&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get value from datasubset passed in process model using a!startProcessLink() function</title><link>https://community.appian.com/thread/51380?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 13:23:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0307383-20ea-4ab2-aa2e-18c170c1834f</guid><dc:creator>Josh</dc:creator><description>You probably need to do something like index(ri!datasubset.data, &amp;quot;Name&amp;quot;, {}). Datasubsets have additional attributes like totalCount and startindex so you need to first index out the data before you can access values.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>