<?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>Passing a context via external webpage when using Embedded UI</title><link>https://community.appian.com/discussions/f/integrations/20107/passing-a-context-via-external-webpage-when-using-embedded-ui</link><description>Hi All, 
 I do have a requirement to embed a UI in our customer portal and display some details based on the user context. 
 We are able to successfully embed the UI, but the problem I am facing is that, a single user has one to many relationship to cases</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Passing a context via external webpage when using Embedded UI</title><link>https://community.appian.com/thread/78586?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 15:57:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ba52e94-04ac-49ef-b24e-ed843e259bca</guid><dc:creator>Suresh Gunawardane</dc:creator><description>&lt;p&gt;i have used related action to embed and passing the record identifier from the main page, luckily we use the caseId as record id in Appian hence there was no need to use a web API etc. thank you for your input Peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing a context via external webpage when using Embedded UI</title><link>https://community.appian.com/thread/78581?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 14:41:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c4436ad4-da34-44cb-b164-509ca3c64320</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ok in that case I think your best option is probably to display a record or task. Using a report works well if the logic is only in Appian, but using a record or task makes it easier to use information from the web page to display data.&lt;/p&gt;
&lt;p&gt;Could you set up a record that uses the same identfier caseId that is used in the webpage? If you do then it would be easy to just plug in the corresponding caseId. Even if they aren&amp;#39;t the same ID, this is where you could set up a Web API that could be called and return the record ID given the case ID. There&amp;#39;s a few examples of dynamic behavior in the &lt;a href="https://docs.appian.com/suite/help/20.4/Embedded_Interfaces.html#dynamic-embedding"&gt;Embedded Documentation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing a context via external webpage when using Embedded UI</title><link>https://community.appian.com/thread/78580?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 14:19:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8f6e8e4-558f-4ce7-ae2a-884d430d9401</guid><dc:creator>Suresh Gunawardane</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;At the moment, we are hoping we can embed a report, but we are open to suggestion to embed task or any other object. At the moment we need this report to receive the caseId from the customer webpage where the Appian UI is embedded in. The problem is we can not uniquely identify the caseId with in Appian just by looking at the user, we need to get the caseId passed from the webpage where the Appian UI is embedded.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing a context via external webpage when using Embedded UI</title><link>https://community.appian.com/thread/78578?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 14:06:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1fcab9e-2a7e-46ed-bc56-523713146006</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;How do you know which case should be displayed? Is there some logic that you use (e.g. most recently opened case, case with the first ID, etc.)?&amp;nbsp;I also can&amp;#39;t tell - what are you showing in Embedded? Is it a record / report / task?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re showing a report, then you can probably set up all of your logic that determines what case to display right within the report interface. If you&amp;#39;re dispalying a task or record, usually the best way to set this up is to create a web API that determines which task ID or record ID should be displayed to the user. Then, you can call the web API to return the result and insert the ID to return the corresponding page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>