<?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>Issue creating Web API</title><link>https://community.appian.com/discussions/f/integrations/28287/issue-creating-web-api</link><description>Hi there, 
 trying to learn building web api in Appian, could anyone know what&amp;#39;s the problem here? the second parameter can not be CASTed? 
 Best regards,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue creating Web API</title><link>https://community.appian.com/thread/110624?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 16:42:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d49a34f-ef86-4746-9ed7-a848f88fa97b</guid><dc:creator>linp0001</dc:creator><description>&lt;p&gt;Thanks everyone, I have made it work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating Web API</title><link>https://community.appian.com/thread/110620?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 16:14:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8fae374-aad2-42d6-8286-8fca6cc20b1f</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Agree. The syntax is little bit tricky.&lt;/p&gt;
&lt;p&gt;If you use () it means you are referring to empty CDT instance and you need to use typeof(). if you reference directly to&amp;nbsp;the cdt type like&amp;nbsp;&lt;span&gt;&amp;#39;type!{urn:com:appian:types:AWM}AWM_SN&amp;#39; then no need to use typeof().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;cast(&lt;br /&gt; typeof(&amp;#39;type!{urn:com:appian:types:AWM}AWM_SN&amp;#39;&lt;span style="background-color:#ffff00;"&gt;()&lt;/span&gt;),&lt;br /&gt; {&lt;br /&gt; id: 1,&lt;br /&gt; sn: &amp;quot;XXX-XX-123&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: Issue creating Web API</title><link>https://community.appian.com/thread/110619?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 16:06:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13792dbf-704f-4dbf-bc34-9f913659bdbe</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;FYI, No need to use typeof() when referencing a CDT&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/18/pastedimage1680710871639v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating Web API</title><link>https://community.appian.com/thread/110613?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 15:34:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a08b2852-f915-4a9e-9aa7-665489ded739</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Use typeof() function as shown below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;cast(
  typeof(&amp;#39;type!{urn:com:appian:types:AWM}AWM_SN&amp;#39;()),
  {
    id: 1,
    sn: &amp;quot;XXX-XX-123&amp;quot;
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating Web API</title><link>https://community.appian.com/thread/110560?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 22:02:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c1f2d87-9cb4-4a94-957f-9900f0a063e3</guid><dc:creator>linp0001</dc:creator><description>&lt;p&gt;found the reason, the &amp;quot;sn&amp;quot; should be &amp;quot;SN&amp;quot; match the definition in data type&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>