<?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>Displaying an Image from External API on Interface Load ?</title><link>https://community.appian.com/discussions/f/integrations/29232/displaying-an-image-from-external-api-on-interface-load</link><description>Hi, 
 I want to display an image from an external API call. Currently, I can achieve this on the interface using a button, but it is not ideal. The user wants to load this image from the API on interface/page load without the need to click on the button</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Displaying an Image from External API on Interface Load ?</title><link>https://community.appian.com/thread/115716?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 12:15:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c90288c8-7197-43a1-a0a9-384ca2df4947</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="220407" url="~/discussions/f/integrations/29232/displaying-an-image-from-external-api-on-interface-load/115668#115668"]unless &amp;quot;refreshAlways&amp;quot; is true for that local variable[/quote]
&lt;p&gt;And if you try using a local variable set to RefreshAlways?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying an Image from External API on Interface Load ?</title><link>https://community.appian.com/thread/115668?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 19:37:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fb6de07-02b2-4d05-986d-b1191199ff7c</guid><dc:creator>Trung Tran</dc:creator><description>&lt;p&gt;it would give me this because inside this call use smartservice to convert base64 into image:&amp;nbsp;&amp;nbsp;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error : An error occurred when creating local!CallWebAPI. a!save() and smart service functions cannot be used in a local variable unless &amp;quot;refreshAlways&amp;quot; is true for that local variable using the a!refreshVariable() function.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying an Image from External API on Interface Load ?</title><link>https://community.appian.com/thread/115663?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 18:03:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23003815-7375-4140-a214-45dc7682b24d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried this, so I have no idea whether it would really work, but just for the sake of thoroughness, what would happen if you declare a local variable as the result of the API call?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying an Image from External API on Interface Load ?</title><link>https://community.appian.com/thread/115656?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 17:00:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4939c79-0b5d-4e5f-8808-fa34f6f16a84</guid><dc:creator>Trung Tran</dc:creator><description>&lt;p&gt;oh ok, thank you, yeah it returns a&amp;nbsp;&amp;nbsp;base64 encoded string of an image, which is why I need to use&amp;nbsp;&lt;span&gt;saveInto so it converts to an image for display back, etc...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying an Image from External API on Interface Load ?</title><link>https://community.appian.com/thread/115652?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 16:24:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e087e45e-4af9-4979-bdaf-722a6820a1bd</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;The API would have to return a URL to the image for that to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>