<?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 update output saved in DB in a new process as input which is a array</title><link>https://community.appian.com/discussions/f/process-mining/27861/how-to-update-output-saved-in-db-in-a-new-process-as-input-which-is-a-array</link><description>I have contact recordtype and experience record type with 1 contact to multiple experiences, linked through contact.id = experience.contactId. I have a form which saves contact details and a editable grid to capture multiple experiences. When I save I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to update output saved in DB in a new process as input which is a array</title><link>https://community.appian.com/thread/108435?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 08:14:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2313d23-0f44-4259-8320-fa9f7d01b618</guid><dc:creator>neerajn0004</dc:creator><description>&lt;p&gt;Great, it worked perfectly. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update output saved in DB in a new process as input which is a array</title><link>https://community.appian.com/thread/108397?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 17:40:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:207ece31-6fa5-49a7-9284-1941fb23102f</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Add a script task before write to experience DB. In this new script out put do the following logic and save back to pv!experience.contactId&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;repeat(
  /*You need to map your experience process variable here*/
  length(pv!experience),
  pv!contact.id
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It will save contact id to all experiences&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>