<?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 get sub process value in main process.</title><link>https://community.appian.com/discussions/f/administration/21588/how-to-get-sub-process-value-in-main-process</link><description>Hi All, 
 I have main process and calls sup process. Suppose sub process will iterate 10 time and each iteration it will generate new id. I want all new generated id by sub process in main process. 
 I have implemented output option in sub process but</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/139771?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 17:11:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb255788-73fa-44e6-a826-567aaa36bf9a</guid><dc:creator>alejandromr</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I understand what the colleague is mentioning. He wants to retrieve the &amp;#39;outputs&amp;#39; from the subprocess instances into a single variable in the subprocess node. I have a similar need, and what&amp;#39;s happening is that the output variable is being replaced with each execution, which is why only the last record is visible. The screenshot you show doesn&amp;#39;t apply to a subprocess node because it doesn&amp;#39;t have the &amp;#39;data&amp;#39; tab.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/12/pastedimage1724173861415v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The output variables option in the configuration only has an &amp;#39;=&amp;#39; (equal) operator; there&amp;#39;s no way to select an&amp;nbsp;&amp;#39;appended&amp;#39;&lt;/p&gt;
&lt;p&gt;thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/103800?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 20:02:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b47160a2-c2a8-478c-b68c-73fb0aba99b2</guid><dc:creator>Ann James</dc:creator><description>&lt;p&gt;Hi Umesh,&lt;/p&gt;
&lt;p&gt;Ensure that the new ID generated by the subprocess is an output variable for that subprocess. I am assuming that the pv! in the parent PM which will store all the Ids is of the same type as in the sub PM, then you will need to update the parent PM script task (where the Id is copied from sub PM to parent PM&amp;nbsp;) output Operator have the the &amp;quot;is appended to list&amp;quot; selected. refer the image below.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/12/pastedimage1667419828132v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/84451?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 09:56:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7848744-1063-4653-af29-cde7f94f9879</guid><dc:creator>umeshkumars0001</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/12/Untitled.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/84435?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 17:32:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f39d4b25-b48f-4ed5-8791-e415114027dd</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you talk more about what you&amp;#39;re doing? What activities are you running in the sub-process? What do you need to do with the IDs in the parent process? Some screenshots would be helpful too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/84434?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 17:25:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d949398-16dc-4066-949b-cccb0c24f805</guid><dc:creator>umeshkumars0001</dc:creator><description>&lt;p&gt;As example, I have 10 records and setting in sub process &amp;quot;&lt;span&gt;Run one instance for each item in&amp;quot;. So sub process will execute 10 times and each call it will generate new id. I want all new id in main process.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/84433?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 17:12:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6fac8214-c2e5-4926-9961-991ac5eaf19d</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;Sure, what do you mean by &amp;#39;sub process will iterate 10 times&amp;#39;? Are you forming a loop in the process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/84427?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 14:00:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bed61371-01a5-45d5-b6fb-f20a1f387733</guid><dc:creator>umeshkumars0001</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp; your reply Danny.&lt;br /&gt;&lt;br /&gt;it is possible without &amp;quot;multi node instance&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get sub process value in main process.</title><link>https://community.appian.com/thread/84424?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 12:58:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f48e9c6-cf8e-4f47-b4a0-1a8fd324e0e1</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;Sub-processes can be tricky but work well when iterating through a list. When choosing to use &amp;#39;multi-node instance&amp;#39; by iterating through a list, you can reference the list as a variable to pass into or save out to and Appian will smartly choose the correct index. If you know how many sub-processes you&amp;#39;ll be creating, I recommend creating a variable of Integer which is a multiple and calling it Ids. You can use fn!enumerate() in a script task to quickly generate a list. Have the sub-process loop through this list and save your newly generated Id back to the list.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;That should work, if it does not, consider passing the variable by reference,&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.2/Sub-Process_Activity.html#passing-a-process-variable-as-a-reference"&gt;https://docs.appian.com/suite/help/21.2/Sub-Process_Activity.html#passing-a-process-variable-as-a-reference&lt;/a&gt;&amp;nbsp;which means you don&amp;#39;t need to save back to the variable since updates automatically persist to the parent process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>