<?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>WEB Api</title><link>https://community.appian.com/discussions/f/integrations/23661/web-api</link><description>Hi All, 
 
 I&amp;#39;m trying to pass JSON object in the startprocess but some how I&amp;#39;m not able to send all the attributes at one go 
 Here is the sample JSON I&amp;#39;m passing 
 
 { &amp;quot;CompanyName&amp;quot;: &amp;quot;Company&amp;quot;, &amp;quot;Category&amp;quot;: &amp;quot;Information Technology&amp;quot;, &amp;quot;SubCategory&amp;quot;: &amp;quot;COnsulting</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90831?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 15:07:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:324dc9dd-0a6f-4d6e-be43-3156a6b49bca</guid><dc:creator>NandaKishore</dc:creator><description>&lt;p&gt;Sure will do&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90830?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 14:59:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:889cfc72-adde-40ae-b212-953821f8a529</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you share your solution? Someone in the future might come across a similar issue and it would be helpful for them to see what happened and how you resolved it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90829?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 14:42:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:957f72ad-548d-448e-8b3c-5d4a75a78020</guid><dc:creator>NandaKishore</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the rule rule!LN_FDM_RULE_WEBAPI() where I have passed all the variables, But i figured out the solution and its working for me now&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nanda&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90825?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 14:32:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17ee9297-e0c3-4fa7-a2ec-97d72e5c9f7f</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ok what is the &amp;quot;rule!LN_FDM_RULE_WEBAPI() doing? Also what process parameters are you expecting for this input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90796?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 04:05:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:459f6b24-1f67-4029-bea0-b2a42877fd3c</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi ,Are you using another Web API to pass values in process parameters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90795?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 23:37:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11b97555-fd42-4a8c-bacd-4a8bbfcf64e6</guid><dc:creator>NandaKishore</dc:creator><description>&lt;p&gt;Yea I have updated with the Valid JSON,and the web api looks like below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; a!startProcess(&lt;br /&gt; processModel: cons!LN_FDM_PM,&lt;br /&gt; processParameters: rule!LN_FDM_RULE_WEBAPI(&lt;br /&gt; httpRequest: a!fromJson(http!request.body)&lt;br /&gt; ),&lt;br /&gt; onSuccess: a!httpResponse(&lt;br /&gt; statusCode: 200,&lt;br /&gt; headers: {&lt;br /&gt; a!httpHeader(&lt;br /&gt; name: &amp;quot;Content-Type&amp;quot;,&lt;br /&gt; value: &amp;quot;application/json&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; body: index(fv!processInfo.pv, &amp;quot;requestId&amp;quot;, null)&lt;/p&gt;
&lt;p&gt;),&lt;br /&gt; onError: a!httpResponse(&lt;br /&gt; statusCode: 500,&lt;br /&gt; headers: {&lt;br /&gt; a!httpHeader(&lt;br /&gt; name: &amp;quot;Content-Type&amp;quot;,&lt;br /&gt; value: &amp;quot;application/json&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; body: a!toJson(&lt;br /&gt; {&lt;br /&gt; error: &amp;quot;There was an error starting the process&amp;quot;&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90794?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 23:30:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:379161a2-3c64-49ff-9208-3e3a7f4debad</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I think you&amp;#39;ll have to provide more context for us to help you. Did you update your request to send valid JSON? What does your Web API look like? How is the process model set up? What troubleshooting steps have you tried? The more information you provide the faster we&amp;#39;ll be able to suggest a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90793?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 22:00:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:30c9cc07-c0ca-497e-8d2b-e826fb99d981</guid><dc:creator>NandaKishore</dc:creator><description>&lt;p&gt;Hi Peter, Thank you for the Response ,but still I have no luck&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Nanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Api</title><link>https://community.appian.com/thread/90792?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 21:44:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ed36deb-ec85-43c1-920e-3433fb41fa87</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;That doesn&amp;#39;t look like valid JSON to me - I think you need additional brackets around your second list of invoice numbers like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
  &amp;quot;CompanyName&amp;quot;: &amp;quot;Company&amp;quot;,
  &amp;quot;Category&amp;quot;: &amp;quot;Information Technology&amp;quot;,
  &amp;quot;SubCategory&amp;quot;: &amp;quot;COnsulting&amp;quot;,
  &amp;quot;Definition&amp;quot;: &amp;quot;On Call&amp;quot;,
  &amp;quot;ShipToState&amp;quot;: &amp;quot;AK&amp;quot;,
  &amp;quot;invoiceDetails&amp;quot;: [
    {
      &amp;quot;InvoiceNumber&amp;quot;: &amp;quot;3425638769&amp;quot;,
      &amp;quot;InvoiceDate&amp;quot;: &amp;quot;1/28/2022&amp;quot;,
      &amp;quot;InvoiceValue&amp;quot;: &amp;quot;400.00$&amp;quot;,
      &amp;quot;InvoiceDueDate&amp;quot;: &amp;quot;2/22/2022&amp;quot;,
      &amp;quot;InvoiceBalance&amp;quot;: &amp;quot;300.00$&amp;quot;

    },
    {
      &amp;quot;InvoiceNumber&amp;quot;: &amp;quot;3425638769&amp;quot;,
      &amp;quot;InvoiceDate&amp;quot;: &amp;quot;1/28/2022&amp;quot;,
      &amp;quot;InvoiceValue&amp;quot;: &amp;quot;400.00$&amp;quot;,
      &amp;quot;InvoiceDueDate&amp;quot;: &amp;quot;2/22/2022&amp;quot;,
      &amp;quot;InvoiceBalance&amp;quot;: &amp;quot;300.00$&amp;quot;
    }
  ]
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you update your request to include that valid JSON?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>