<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>Search an item by id across all item types</title><link>https://www.aras.com/community/f/development/3102/search-an-item-by-id-across-all-item-types</link><description>I sometimes had the problem that I have an ID of an Item within Aras, but I don&amp;#39;t know the Item Type that it belongs to.
(for example, I find the id in an error log somewhere but it&amp;#39;s not clear where it came from.)

Since I don&amp;#39;t know any direct way of</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Search an item by id across all item types</title><link>https://www.aras.com/community/thread/32?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 09:07:49 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e2e74eaf-220d-4a8a-a9aa-1d1cdd61b546</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Thomas,

If you are interested in sharing your method code, I recommend posting your package to an open source code sharing site like GitHub. You can then email the GitHub link to araslabs@aras.com and the Aras Labs team will review the project for the Aras Community Projects list. &lt;a href="http://community.aras.com/projects" target="_blank"&gt;http://community.aras.com/projects&lt;/a&gt;

Eli

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search an item by id across all item types</title><link>https://www.aras.com/community/thread/30?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 03:46:13 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d35f4d30-e9f4-49bd-ad2e-669c177281f4</guid><dc:creator>Thomas Hotz</dc:creator><description>Zahar,

thanks for your comments.

The idea with a poly itemtype is also good, however I think it&amp;#39;s a lot more effort to maintain.
Whenever I create a new itemtype (and we do this frequently since we&amp;#39;re just in the process of implementing Aras), I would need to update the poly item definition to include the new itemtype. And if I want to delete an itemtype (which also happens now and then) I would first need to remove it from the poly definition before I can delete it.
So I think my solution is easier to maintain over time.


&lt;blockquote&gt;you can upload your files to some cloud and set link as public and link here using link button in text editor&lt;/blockquote&gt;

Hmmm... that&amp;#39;s not very convenient.
It almost sounds like if I implement Aras as a PLM system and I tell my users that they should use Aras to maintain parts and BOMs, but when they have a drawing for a part, they should put it to a network share and post a link in Aras. Doesn&amp;#39;t sound very good to me.

I really think if Aras wants us to use this community platform more frequently, they should allow to post screenshots and add attachements directly. 

Thomas&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search an item by id across all item types</title><link>https://www.aras.com/community/thread/25?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 10:44:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b9dcc95b-7d3e-415d-b83f-8f9b201a2483</guid><dc:creator>Zahar Chernov</dc:creator><description>Thomas,

I think your solution is good but it overkill for your task. 
What you can do is:
&lt;ul&gt;
&lt;li&gt;&lt;ol&gt;create Poly ItemType&lt;/ol&gt;
&lt;ol&gt;set in Poly Source tab all ItemTypes that you want to search in for your ID - I guess you don&amp;#39;t want to search all internal tables, but if so you can add them too&lt;/ol&gt;
&lt;ol&gt;search using simple API:
&lt;code&gt;innovator.getItemById(&amp;quot;{YOUR POLYITEM NAME}&amp;quot;, &amp;quot;{ID}&amp;quot;);&lt;/code&gt;
or using AML:
&lt;code&gt;&amp;lt;AML&amp;gt;&amp;lt;Item type=&amp;#039;YOUR POLYITEM NAME}&amp;#039; action=&amp;#039;get&amp;#039; id=&amp;#039;{ID}&amp;#039; /&amp;gt;&amp;lt;/AML&amp;gt;&lt;/code&gt;&lt;/ol&gt;

&lt;/li&gt;&lt;/ul&gt;


About attachment question: you can upload your files to some cloud and set link as public and link here using link button in text editor&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search an item by id across all item types</title><link>https://www.aras.com/community/thread/27?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 09:12:01 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:874ec173-07ee-4df5-a758-94dd43f00b49</guid><dc:creator>Thomas Hotz</dc:creator><description>PS: Is there a way of adding attachments in this forum? It might have been helpful if I could had put my code into a package and attach it as a zip file instead of posting the code directly as text.

Also, I would have like to attach a screenshot of my application but I didn&amp;#39;t know how to upload a picture.

Sorry if I ask stupid questions, this is my first post here...  :-)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>