<?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>Convert Dict to Map</title><link>https://community.appian.com/discussions/f/rules/28985/convert-dict-to-map</link><description>Interface is holding Dict Type Process model is holding Map Type 
 Clash b/w the dataTypes while triggering PM. Could you please help me to convert dict to map before triggering?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114449?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 06:34:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:064626d4-fc63-444a-af8c-2b91e746c6b3</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;a href="/members/andrewh8070"&gt;Andrew Hickingbotham&lt;/a&gt;, I was this year old when I knew about this function. I still prefer wrapping the type in {} to make it an array. Makes me less worried about anything going wrong because of a typo.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114447?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 06:30:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac715fcc-4333-4def-a3a2-cee15b6ee2ff</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Or&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;cast(
  &amp;#39;type!Map?list&amp;#39;,
  {
    {
      name: &amp;quot;Harshit&amp;quot;,
      website: &amp;quot;harshitbumb.com&amp;quot;,
      blog: &amp;quot;appianspace.com&amp;quot;
    },
    {
      name: &amp;quot;Stefan&amp;quot;,
      website: &amp;quot;appian.rocks&amp;quot;,
      blog: &amp;quot;https://appian.rocks/blog-posts/&amp;quot;
    }
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114446?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 06:21:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27d69a03-6188-4802-b9f3-2b7316fac055</guid><dc:creator>Andrew Hickingbotham</dc:creator><description>&lt;p&gt;By habit I also use typeof() but a list&amp;nbsp;using type!map is still straightforward (unless I&amp;#39;m missing something)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(
  a!listType(type!Map),
  {
    {
      name: &amp;quot;Harshit&amp;quot;,
      website: &amp;quot;harshitbumb.com&amp;quot;,
      blog: &amp;quot;appianspace.com&amp;quot;
    },
    {
      name: &amp;quot;Stefan&amp;quot;,
      website: &amp;quot;appian.rocks&amp;quot;,
      blog: &amp;quot;https://appian.rocks/blog-posts/&amp;quot;
    }
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114443?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 05:32:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a39a8a10-5241-457c-b189-4d506a303fab</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Same. I agree. Also, it becomes difficult when you have to cast to a list of that type.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114428?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 21:59:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10901c3d-f9b3-4fec-9e24-f46abfe8822f</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;To each their own :)&lt;/p&gt;
&lt;p&gt;I personally find typeof more predictiable than using direct types because of the auto-complete which is hit and miss&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1686866082572v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114417?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 16:48:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0895707f-9347-4f68-8ee5-20718207e833</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Just curious, why are you using a dictionary? Maps are essentially better than a dictionary in every way, so it&amp;#39;s usually better to define your data using a map instead. If you&amp;#39;re receiving the data from an integration or something, you can also use the options that others suggested to cast to a map.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114376?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 08:02:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fb331ca-b298-4e2f-b755-784037654af6</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Interface or Expression rule?&lt;/p&gt;
&lt;p&gt;You can use the cast() function to cast into Map but AFAIK there is no need for it, as dictionary gets casted into Map automatically, if your output is of type &lt;strong&gt;List&lt;/strong&gt; of dictionary then make sure that Map type pv! is Multiple selected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114374?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 07:57:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62222eff-9266-409d-a498-6b609afbbbe9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I try to avoid using typeof and reference the type directly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(
  type!Map,
  {
    name: &amp;quot;Harshit&amp;quot;,
    website: &amp;quot;harshitbumb.com&amp;quot;,
    blog: &amp;quot;appianspace.com&amp;quot;
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114372?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 07:55:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:494d73fb-f1cb-48bc-ab24-1d1de83023c1</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(
  typeof({a!map()}),
  {
    name: &amp;quot;Harshit&amp;quot;,
    website: &amp;quot;harshitbumb.com&amp;quot;,
    blog: &amp;quot;appianspace.com&amp;quot;
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Dict to Map</title><link>https://community.appian.com/thread/114371?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 07:50:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68c87461-56bd-411a-b3c0-e19e0a7e8791</guid><dc:creator>Eunnel</dc:creator><description>&lt;p&gt;you can use a!map() function &lt;a href="https://docs.appian.com/suite/help/23.2/fnc_system_map.html"&gt;docs.appian.com/.../fnc_system_map.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>