<?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 insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/discussions/f/process/24842/how-to-insert-data-and-get-database-id-as-an-output-of-my-process</link><description>My process inserts a new record in table CONTACT . 
 Using AC!StoredValues , the process variable pv!contact is correctly updated with the ID (in debug, I see it in the process variables). 
 
 Now I would like to understand why it is not updated in the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/thread/96128?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 13:20:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:94318b53-9eb3-4f90-822d-df17c88e6977</guid><dc:creator>julienc</dc:creator><description>&lt;p&gt;Indeed, the &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;code&gt;onSuccess: {&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a!save(ri!contact, fv!processInfo.pv.contact)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;did it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/thread/96123?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 13:00:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:021db38c-9557-4c99-9b4e-dd97bd3d508f</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;in the &amp;#39;onSuccess&amp;#39; you can have an array of a!save() where you can access the fv!&lt;code class="language-plaintext highlighter-rouge"&gt;processInfo&lt;/code&gt;&lt;span&gt;&amp;nbsp;which will contain&amp;nbsp;the state of the process&amp;nbsp;variables at the point that control was passed back to the calling interface. Note that if your process model is not chained beyond the point where the Ids of the inserted database objects are returned then you will not see their values returned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Refer to&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.2/Start_Process_Smart_Service.html"&gt;https://docs.appian.com/suite/help/22.2/Start_Process_Smart_Service.html,&lt;/a&gt;&amp;nbsp;specifically the &amp;#39;onSuccess&amp;#39; information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/thread/96122?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:49:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba99fda8-c10b-499a-b687-6d277676735b</guid><dc:creator>julienc</dc:creator><description>&lt;p&gt;I am not sure this could answer &lt;span style="text-decoration:line-through;"&gt;my question: I am talking about a&lt;strong&gt; process launched from an interface&lt;/strong&gt; (I know its not good, but application is here and needs maintenance).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/thread/96121?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:43:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55afcdeb-6fad-41ab-9f02-edaa212ddfa4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.2/Start_Process_Smart_Service.html"&gt;docs.appian.com/.../Start_Process_Smart_Service.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/thread/96120?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:26:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62b0e60c-4c96-4644-9ffc-a2811d752abf</guid><dc:creator>julienc</dc:creator><description>&lt;p&gt;Thanks! However I am not done yet... &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f914.svg" title="Thinking"&gt;&amp;#x1f914;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Side question: how do I reference the output parameter? From what you say, here is what I understood I should do:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;a!save(ri!contact, ri!contact)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;(or with a little more imagination :&lt;/p&gt;
&lt;pre style="padding-left:30px;"&gt;a!save(ri!contact, save!value.contact)&lt;/pre&gt;
&lt;p&gt;)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;None seem to be working for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert Data and get database ID as an output of my process?</title><link>https://community.appian.com/thread/96112?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 11:22:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fc17150-a117-4dbd-8bc5-6e2dfb8b196c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You will have to add at least one a!save to onSuccess to copy data to your rule input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>