<?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>Get Image By ID</title><link>https://community.appian.com/discussions/f/data/14162/get-image-by-id</link><description>Hi everyone, 
 
 Does anyone know how to retrieve an image (or document) by ID? My idea is to have a ri!imageId on the input, and the output would be an image (or document). 
 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Image By ID</title><link>https://community.appian.com/thread/64064?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 08:26:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f746d577-567e-40cb-a22b-3a6370723a83</guid><dc:creator>josuv0001</dc:creator><description>I think that what I said works for me. I&amp;#39;m trying to send an image in a WebAPI response.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Image By ID</title><link>https://community.appian.com/thread/64053?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:56:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12fa6d66-aef1-4f16-9221-17cfa55e1496</guid><dc:creator>Mike Schmitt</dc:creator><description>How about just &amp;quot;todocument(ri!imageId)&amp;quot;?  Then again I&amp;#39;m not 100% sure what you&amp;#39;re trying to do or what issues you&amp;#39;ve been having.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Image By ID</title><link>https://community.appian.com/thread/64052?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:16:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7950750a-79d4-4442-82a3-79c285749a75</guid><dc:creator>josuv0001</dc:creator><description>Hi Chanakya,&lt;br /&gt;
&lt;br /&gt;
After some searching, I found that the following code works for me: &amp;quot;a!documentImage(todocument(tointeger(ri!imageId))).document&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Thanks anyway :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Image By ID</title><link>https://community.appian.com/thread/64051?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:16:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba8c66b7-72c8-4d0e-bcc6-b403085d62f3</guid><dc:creator>josuv0001</dc:creator><description>Hi Mike,&lt;br /&gt;
&lt;br /&gt;
After some searching, I found that the following code works for me: &amp;quot;a!documentImage(todocument(tointeger(ri!imageId))).document&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Thanks anyway :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Image By ID</title><link>https://community.appian.com/thread/64049?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 15:46:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c203520-01c4-4cdf-a477-789164dc98b9</guid><dc:creator>Chanakya Volam</dc:creator><description>In general if the ID is correct you can convert id to doc using todocument(). If there is no doc with given ID appian will return [ID NOT FOUND] (Document)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Image By ID</title><link>https://community.appian.com/thread/64048?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 15:41:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b9e4252-7ef0-4c9b-b3ce-0bca3201c931</guid><dc:creator>Mike Schmitt</dc:creator><description>Can you give any further detail about your use case, and/or what you&amp;#39;ve tried so far?  In general though, if you have a valid document ID for an image, you should just be able to plug it into the image component.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>