<?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>WebAPI POST Array dataset?</title><link>https://community.appian.com/discussions/f/integrations/22148/webapi-post-array-dataset</link><description>I have created a WebAPI - Write to Database - POST 
 When I send an array of data, it only takes the first dataset. How to process all the records in the array? 
 a!localVariables( local!value: cast( &amp;#39;type!{urn:com:appian:types:YM}XX_WebAPI&amp;#39;, a!fromJson</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: WebAPI POST Array dataset?</title><link>https://community.appian.com/thread/86778?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 06:22:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8153cc3e-fd73-4029-9271-8145e87b5e92</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You need to cast the incoming data into a list. See line two.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;local!value: cast(
&amp;#39;type!{urn:com:appian:types:YM}XX_WebAPI?list&amp;#39;,
a!fromJson(http!request.body)
),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>