<?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>Cast to Map</title><link>https://community.appian.com/discussions/f/data/29909/cast-to-map</link><description>I have a process variable of map type and i am getting data like below array. How can i cast this to map. {id=1, Name=,class=12, sub=, }</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118753?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 06:09:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c798a9ce-2a97-416a-a0de-1a9daedd8ce1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The issue here is that a field name, followed by a colon and then a comma is invalid syntax. In case you want to assign a null value, just write &amp;quot;null&amp;quot; or null(). This has nothing to do with casting or maps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118752?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 03:56:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da82997a-e55f-437e-9606-78dfc21ad42c</guid><dc:creator>Neelesh Janga</dc:creator><description>&lt;p&gt;&amp;nbsp;I am curious to know if process and expression works in same manner or not. I&amp;#39;ve heard from someone that they doesn&amp;#39;t work the same so that&amp;#39;s the reason why I am seeing an error in the snapshot uploaded. In my case,&amp;nbsp;Process variable doesn&amp;rsquo;t have any value for my websites&amp;nbsp;and even not showing null.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/Cast-to-Map.jpg" /&gt;&amp;nbsp;&lt;br /&gt;I copied this from process variable only and it works there but not here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118735?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 18:18:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20788eef-0249-49a9-8d72-5ce7321bd886</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Just works ..,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(
  type!Map,
  {
    key1: &amp;quot;value1&amp;quot;
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118730?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 18:04:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5f1346c-8ccb-4780-bc75-2511894248be</guid><dc:creator>Neelesh Janga</dc:creator><description>&lt;p&gt;&lt;span&gt;I am just trying to test in expression rule if this array convert to map. If didn&amp;#39;t work, I&amp;#39;ll share the details with screenshots or code if I didn&amp;#39;t get the desired output. Thanks for your patience and I appreciate your quick responses.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118728?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 17:58:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73745f78-5e18-4fb4-b99b-62aa32852643</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What are you doing in your expression rule to try and cast?&amp;nbsp; Any snippet / screenshot?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118727?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 17:54:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c41f2fd-ee1c-4198-a63d-07b09623b265</guid><dc:creator>Neelesh Janga</dc:creator><description>&lt;p&gt;&lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;Yes I tried no luck.&amp;nbsp;I am also trying in expression rule to cast as map however getting syntax error because of no value for Name and Sub. Somehow if it is update to null then it can work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cast to Map</title><link>https://community.appian.com/thread/118726?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 17:52:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d617b4b7-2c1e-42c7-8f8f-f3f684c5c2cb</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Have you tried just saving it into the map type PV?&amp;nbsp; What happens?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>