<?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>Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/discussions/f/integrations/17858/can-someone-share-an-example-of-using-a-scsfield-functions-in-a-rule</link><description>As we know, the a!scsField function can only be called within certain objects. Can someone share an example of using a!scsfield functions in a rule to retrieve the 3rd party credentials?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/thread/70278?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 21:56:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67b51c31-6819-4e83-b937-b7bbd511c1ea</guid><dc:creator>cindyv0001</dc:creator><description>&lt;p&gt;I do use WS-Security UsernameToken. So I will try&amp;nbsp;to use Call Web Service Smart Service and let you know the results. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/thread/70277?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 21:52:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e17d5c92-930d-4112-a8a8-b4c28b523756</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;You won&amp;#39;t be able to use the secure credential store for this, since you can&amp;#39;t insert those values into an arbitrary expression. Can you use the&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.3/Call_Web_Service_Smart_Service.html"&gt;Call Web Service Smart Service&lt;/a&gt;? That service will automatically construct the SOAP envelope and it provides an easy checkbox to select the secure credential store options.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, you might be able to use the &lt;a href="/b/appmarket/posts/advanced-call-web-service"&gt;advanced call web service&lt;/a&gt; from the app market. This can work if your WSDL doesn&amp;#39;t have the WS-Security UsernameToken.&lt;/p&gt;
&lt;p&gt;If that still doesn&amp;#39;t work, you probably can&amp;#39;t use the secure credential store. Instead, you could store credentials in a constant or database table. Then, you can retrieve them and insert them into your expression above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/thread/70275?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 19:46:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb0bb5dd-56a5-4049-8cf6-94205f9c113c</guid><dc:creator>cindyv0001</dc:creator><description>&lt;p&gt;I am trying to call an external SOAP service. In my expression rule, I am trying to construct the SOAP request that includes the following SOAP header by getting the password from the 3rd party credential stored in Appian admin console. Is there another way to do it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table width="128"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="2" width="128"&gt;&amp;lt;soapenv:Header&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;wsse:Security xmlns:wsse=&amp;#39;&lt;a href="http://schemas.xmlsoap.org/ws/2002/07/secext&amp;#39;"&gt;schemas.xmlsoap.org/.../secext&amp;#39;&lt;/a&gt; soapenv:mustUnderstand=&amp;#39;1&amp;#39;&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;wsse:UsernameToken&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;wsse:Username&amp;gt;myid&amp;lt;/wsse:Username&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;wsse:Password&amp;gt;mypassword&amp;lt;/wsse:Password&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;/wsse:UsernameToken&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;/wsse:Security&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&amp;lt;/soapenv:Header&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/thread/70274?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 19:33:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ac531b0-84b4-42e3-ab79-da859d72eda4</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The scsField function is mostly used in plugins and legacy functions. It can&amp;#39;t be used in a&amp;nbsp;normal expression - it only works if the function you use is explicitly expecting scsField as the data type.&lt;/p&gt;
&lt;p&gt;Also, I don&amp;#39;t believe you can use the value of your password in an expression. This could potentially compromise the security of your stored passwords if the plaintext could be used in expressions.&lt;/p&gt;
&lt;p&gt;Can you use connected systems instead of passwords in the Secure Credential Store? What system are you integrating with?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/thread/70273?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 19:28:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b5442bb-18c8-4e9a-bd54-49aa131312dc</guid><dc:creator>cindyv0001</dc:creator><description>&lt;p&gt;I did exactly what you stated in your email but the return value of a!scfield function&amp;nbsp;is not the password. Plz see my expression rule and its test result below. I heard the reason is that the a!scsField function can only be called within certain objects. Do you know what are the objects?&lt;/p&gt;
&lt;p&gt;/*My expression rule*/&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt;&amp;nbsp; local!pwd: a!scsField(cons!LBS_ACCT_NUM_KEY_NAME,&amp;quot;pwd&amp;quot;,true),&lt;br /&gt;&amp;nbsp; if(isnull(local!pwd),&amp;quot;password is null&amp;quot;,&amp;quot;LBS Acct Number Generator API password=&amp;quot; &amp;amp; local!pwd)&lt;br /&gt;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;====================&lt;/p&gt;
&lt;h2 class="SectionLayout2---section_header" style="background-color:#ffffff;font-family:&amp;#39;Appian Open Sans&amp;#39;, sans-serif;font-style:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span&gt;Test Output&lt;/span&gt;&lt;span class="SectionLayout2---accessibilityhidden"&gt;Hide section contents&lt;/span&gt;&lt;/h2&gt;
&lt;div class="rah-static rah-static--height-auto" style="background-color:#ffffff;color:#000000;font-family:&amp;#39;Appian Open Sans&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;div&gt;
&lt;div class="SectionLayout2---section_contents SectionLayout2---margin_below_standard"&gt;
&lt;div class="ColumnArrayLayout---column_layout ColumnArrayLayout---full ColumnArrayLayout---fixed appian-context-last-in-list"&gt;
&lt;div class="ColumnLayout---column ColumnLayout---align_start ColumnLayout---top appian-context-last-in-list"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inColumnArrayLayout" style="width:1161.33px;"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="158b7afa202b7339c18412ac8571dfc6"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class="SideBySideGroup---side_by_side SideBySideGroup---default_direction SideBySideGroup---sparse SideBySideGroup---top" style="width:1161.33px;"&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inColumnArrayLayout" style="width:162.66px;"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="92794af2688db7be55c0cb43eda1656f"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;Time&amp;nbsp;&amp;nbsp; &lt;/strong&gt;&lt;a class="LinkedItem---richtext_link elements---global_a" href="http://ut13443.ntrs.com:8080/suite/design/lMBIIdg2QJKeyJN3AFLbDh_4Z5WpOR0uwxWNi-j00aQOBosDhKdH38JPIEuzmuH315h-I5qMB-oocf-g2J2dVXbvD4F3_2r4FSOWzpCdUu1W7FFmg"&gt;&amp;lt; 1 ms&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---bias6x appian-context-last-in-list"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inColumnArrayLayout" style="width:977.33px;"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="132fc8494cbf240fbdaa1bd73fe31f08"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;Type&amp;nbsp;&amp;nbsp; &lt;/strong&gt;Text&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---margin_below_none FieldLayout---inColumnArrayLayout" style="width:1161.33px;"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="99480cd1c995697df03fc0e07b297999"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class="SideBySideGroup---side_by_side SideBySideGroup---default_direction SideBySideGroup---bottom" style="width:1161.33px;"&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---minimize"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inMinimizedSideBySideItem FieldLayout---inColumnArrayLayout" style="width:50.66px;"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="abfe1d5a0dd86f5e528187dec4bf9de7"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;Value&amp;nbsp;&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---minimize appian-context-last-in-list"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inMinimizedSideBySideItem FieldLayout---inColumnArrayLayout" style="width:261.33px;"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="73be9101ce9021282f976fb96df20778"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class="RadioSelect---choice_group RadioSelect---compact"&gt;
&lt;div class="RadioSelect---choice_pair"&gt;Formatted&lt;/div&gt;
&lt;div class="RadioSelect---choice_pair"&gt;Raw&lt;/div&gt;
&lt;div class="RadioSelect---choice_pair"&gt;Expression&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inColumnArrayLayout appian-context-last-in-list" style="width:1161.33px;"&gt;
&lt;div class="FieldLayout---label_above"&gt;&lt;span class="FieldLayout---field_label" id="292d5b32f8f1b50136e6dcef37571860"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&amp;quot;LBS Acct Number Generator API password=[externalSystemKey=lbs.acct.number.generator.api, fieldKey=pwd, usePerUser=true]&amp;quot;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can someone share an example of using a!scsfield functions in a rule?</title><link>https://community.appian.com/thread/70269?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 19:03:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2af84e6-b593-499f-98dd-2a1db5bcb203</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;a!scfield function is used for fetching credentials stored in admin console/third-party-credentials. for example&lt;/p&gt;
&lt;p&gt;if you have stored crednitials for a third party system and want to retrieve it and pass to that system while making&amp;nbsp; a service call then you can use this function.&lt;/p&gt;
&lt;p&gt;First parameter would be name which you have made an entry on third party credntials console, second parameter would be the field name which you want to retrieve. usually first parameter would be unique key which can be as per your standard and the second parameter would be field again unique but value would be the password which you need to sent to authenticate the system.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>