<?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>Hi All,         Is there is any way to retrieve process model id from its U</title><link>https://community.appian.com/discussions/f/general/3826/hi-all-is-there-is-any-way-to-retrieve-process-model-id-from-its-u</link><description>Hi All, Is there is any way to retrieve process model id from its UUID, as process model id will be changing from one environment to another environment. Thanks in advance. Regards Pavan Gantasala ... OriginalPostID-130332 OriginalPostID-130332</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi All,         Is there is any way to retrieve process model id from its U</title><link>https://community.appian.com/thread/79333?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 19:29:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d64856e-3a6d-4c6d-982e-9827189a9c7a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;On that note, here is the expression rule I&amp;#39;ve developed that will take the output of this expression and split it up into a usable dictionary (i&amp;#39;m unclear why the plugin itself didn&amp;#39;t just go ahead and do that, but I digress) --&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!rawText: if(
    rule!GCO_RULE_General_isBlank(ri!uuid),
    &amp;quot; &amp;quot;,
    getprocessmodeldetailsbyuuid(ri!uuid)
  ),

  local!type: index(extract(local!rawText, &amp;quot;Type: &amp;quot;, &amp;quot;,&amp;quot; ), 1, null()),
  local!nameList: trim( split( extract( local!rawText, &amp;quot;Name: [&amp;quot;, &amp;quot;]&amp;quot; ), &amp;quot;,&amp;quot; )),
  local!nameArray: a!forEach(
    local!nameList,
    a!localVariables(
      local!pieces: split(fv!item, &amp;quot;=&amp;quot;),
      a!map(
        locale: local!pieces[1],
        name: local!pieces[2]
      )
    )
  ),
  local!id: index(extract( local!rawText, &amp;quot;Id:&amp;quot;, &amp;quot;, UUID&amp;quot; ), 1, null()),
  local!uuid: index(extract( local!rawText, &amp;quot;UUID:&amp;quot;, &amp;quot;, Creator&amp;quot; ), 1, null()),
  local!creator: index(extract( local!rawText, &amp;quot;Creator: &amp;quot;, &amp;quot;, Last&amp;quot; ), 1, null()),
  local!lastModifiedBy: index(extract( local!rawText, &amp;quot;Last Modified by: &amp;quot;, &amp;quot;, Parent&amp;quot;), 1, null()),
  local!parent: index(extract( local!rawText, &amp;quot;Parent: &amp;quot;, &amp;quot;, Parent Id:&amp;quot; ), 1, null()),
  local!parentId: tointeger( index(extract( local!rawText, &amp;quot;Parent Id: &amp;quot;, &amp;quot;,&amp;quot; ), 1, null())),
  local!location: index(extract( local!rawText, &amp;quot;Location: &amp;quot;, &amp;quot;, Is&amp;quot; ), 1, null()),
  local!isPublic: index(extract( local!rawText, &amp;quot;IsPublic: &amp;quot;, &amp;quot;, Created&amp;quot; ) = &amp;quot;true&amp;quot;, 1, null()),
  local!createdOn: index(extract( local!rawText, &amp;quot;Created on: &amp;quot;, &amp;quot;, Last&amp;quot; ), 1, null()),
  local!lastModifiedOn: index(extract( local!rawText, &amp;quot;Last Modified on: &amp;quot;, &amp;quot;, Number of&amp;quot; ), 1, null()),
  local!numVersions: index(extract(local!rawText &amp;amp; &amp;quot;-END-&amp;quot;, &amp;quot;Number of Versions: &amp;quot;, &amp;quot;-END-&amp;quot; ), 1, null()),

  a!map(
    type: local!type,
    primaryName: property(index(local!nameArray, 1, null()), &amp;quot;name&amp;quot;, null()),
    nameArray: local!nameArray,
    id: local!id,
    uuid: local!uuid,
    creator: local!creator,
    lastModifiedBy: local!lastModifiedBy,
    parent: local!parent,
    parentId: local!parentId,
    location: local!location,
    isPublic: local!isPublic,
    createdOn: todatetime(local!createdOn),
    lastModifiedOn: todatetime(local!lastModifiedOn),
    numVersions: local!numVersions,
    
    /*rawText: local!rawText*/
  )
)

/* developed by: Mike Schmitt */&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,         Is there is any way to retrieve process model id from its U</title><link>https://community.appian.com/thread/79332?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 19:27:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e2a6cf9-78fa-4572-9ee6-edcdd2a5f376</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;agreed, for this I would just go ahead and use the extract() function.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;index(extract( local!details, &amp;quot;Id:&amp;quot;, &amp;quot;, UUID&amp;quot; ), 1, null())&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,         Is there is any way to retrieve process model id from its U</title><link>https://community.appian.com/thread/79331?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 18:05:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9bb3eac-47ea-4f7e-a416-fa3e1991f294</guid><dc:creator>fernandorgh</dc:creator><description>&lt;p&gt;you need to consider the string may contain multiple commas in the &amp;quot;Name&amp;quot; value, so the &amp;quot;split&amp;quot; will be affected by this&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;&amp;quot;Type: Process Model, Name: &lt;strong&gt;[en_GB=, en_US=PM Test, es=]&lt;/strong&gt;, Id:5946, ....&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;        Is there is any way to retrieve process model id from its U</title><link>https://community.appian.com/thread/13461?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2014 13:08:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed1e3bda-95e3-4d85-928b-68985199c03b</guid><dc:creator>nareshs427</dc:creator><description>You can use below expression.&lt;br /&gt;=split(split(getprocessmodeldetailsbyUUID(&amp;quot;&amp;lt;UUID&amp;gt;&amp;quot;),&amp;quot;,&amp;quot;)[3],&amp;quot;:&amp;quot;)[2]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;        Is there is any way to retrieve process model id from its U</title><link>https://community.appian.com/thread/13434?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2014 16:16:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06186553-97e7-4f46-b714-822381e0da52</guid><dc:creator>anjannat</dc:creator><description>Hi Pavan Gantasala,&lt;br /&gt;You can use fn!getprocessmodeldetailsbyuuid(&amp;quot;UUIDValue&amp;quot;) function to get Process model Id.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>