<?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>Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/discussions/f/general/35500/process-variable-of-the-process-model-is-when-starting-a-process-model-from-the-web-api</link><description>When starting a process model from the web api, the process variable is []. Below I have attached the result for your reference.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138329?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:19:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fcffd059-b42d-4d1a-926d-5e0bfd21f63d</guid><dc:creator>Rithika M S</dc:creator><description>&lt;p&gt;For process model (which has only query database step that too using sql query) it doesn&amp;#39;t have any parameter to be passed. It only gives output and that I will be saving in the process variable and i am trying to fetch it in the web api.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138328?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:13:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cffca90-7a37-4c92-aef9-0a8da52f339e</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;For process model variables you need to pass the data in json format in the body if the body of the API is null&amp;nbsp; that means the inputs are empty to the process model . So you will get null values in process variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138327?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:12:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a55411f-9517-4ffd-9936-0cccba821feb</guid><dc:creator>Rithika M S</dc:creator><description>&lt;p&gt;yeah it is correct to retrieve process model details we will be using fv!processInfo&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138326?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:11:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:792b020f-2486-4923-81a5-60f67fa13d33</guid><dc:creator>Rithika M S</dc:creator><description>&lt;p&gt;Web API is receiving the data from the process model directly, no need to send data from web api to process model.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138323?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 08:25:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:527ca3f8-6d22-4bb7-872e-31fccfec5d3f</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;You have to send data in an API request as shown below:&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/11/pastedimage1721377486403v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138322?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 07:31:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa813a5b-fde0-4ea3-8fdd-b28b4d6e7a27</guid><dc:creator>Rithika M S</dc:creator><description>&lt;p&gt;Hi, thanks for your reply.&lt;/p&gt;
&lt;p&gt;Can you check the code attached. I am just starting a process model from web api and we will be getting the body result in json format. Like below&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; &amp;quot;pp&amp;quot;: {&lt;br /&gt; &amp;quot;id&amp;quot;: 536891228,&lt;br /&gt; &amp;quot;name&amp;quot;: &amp;quot;EA QueryDB&amp;quot;,&lt;br /&gt; &amp;quot;priority&amp;quot;: 1,&lt;br /&gt; &amp;quot;initiator&amp;quot;: {&lt;br /&gt; &amp;quot;id&amp;quot;: &amp;quot;rithika14&amp;quot;&lt;br /&gt; },&lt;br /&gt; &amp;quot;startTime&amp;quot;: &amp;quot;2024-07-19T07:01:54.560Z&amp;quot;,&lt;br /&gt; &amp;quot;timeZone&amp;quot;: &amp;quot;GMT&amp;quot;,&lt;br /&gt; &amp;quot;starred&amp;quot;: false,&lt;br /&gt; &amp;quot;parentName&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;execId&amp;quot;: 2,&lt;br /&gt; &amp;quot;status&amp;quot;: 0&lt;br /&gt; },&lt;br /&gt; &amp;quot;pm&amp;quot;: {&lt;br /&gt; &amp;quot;id&amp;quot;: 8579,&lt;br /&gt; &amp;quot;uuid&amp;quot;: &amp;quot;0002ec55-6acd-8000-3ce3-7f0000014e7a&amp;quot;,&lt;br /&gt; &amp;quot;name&amp;quot;: &amp;quot;EA QueryDB&amp;quot;,&lt;br /&gt; &amp;quot;description&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;version&amp;quot;: &amp;quot;15.0&amp;quot;,&lt;br /&gt; &amp;quot;creator&amp;quot;: {&lt;br /&gt; &amp;quot;id&amp;quot;: &amp;quot;rithika14&amp;quot;&lt;br /&gt; },&lt;br /&gt; &amp;quot;timeZone&amp;quot;: &amp;quot;GMT&amp;quot;,&lt;br /&gt; &amp;quot;starred&amp;quot;: false,&lt;br /&gt; &amp;quot;parentName&amp;quot;: &amp;quot;&amp;quot;&lt;br /&gt; },&lt;br /&gt; &amp;quot;pv&amp;quot;: {&lt;br /&gt; &amp;quot;table_count&amp;quot;: [],&lt;br /&gt; &amp;quot;table_name&amp;quot;: []&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138321?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 07:30:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f25b67d3-a400-42c9-b258-8fe5e366d9e9</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Can you check the body you are passing into the API.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138320?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 07:27:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b67b57e8-260a-46b7-a47c-c4bd972ca741</guid><dc:creator>Rithika M S</dc:creator><description>&lt;p&gt;sure, here attached for your reference&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/11/pastedimage1721374056907v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138319?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 07:22:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4aa987c6-f7ba-41d3-b343-e7ab524c7452</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;If you do not pass a value for process variables in Web API, the process variable value will be set to null/default when the process is started by Web API.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;In your case, table_count, and table_name are process variables, and you are not passing value for these parameters from Web API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138318?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 07:07:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e25bfa0-d64e-4f8c-a3ce-3ebd523d96d0</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Can you share the code in API.&lt;/p&gt;
&lt;p&gt;Are you passing the body&amp;nbsp; correctly that will match the Process parameters.&lt;/p&gt;
&lt;p&gt;I think the data is not passed properly into the start process&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138317?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 06:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:435bab0a-8d87-43cb-a6ca-c7871becc68c</guid><dc:creator>Rithika M S</dc:creator><description>&lt;p&gt;Hi, thanks for your reply&lt;/p&gt;
&lt;p&gt;I just created a web api with the default template start process and called the process model. Here we don&amp;#39;t need to map any parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process variable of the process model is [] when starting a process model from the web api</title><link>https://community.appian.com/thread/138316?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 06:50:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd792053-ad1d-4b53-a761-36b70fb25243</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;1. Make sure the mappings are correct .&lt;/p&gt;
&lt;p&gt;2. Check the API whether parameters have been passed or not.&lt;/p&gt;
&lt;p&gt;3. Check the security for the service account.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>