<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Object Where used not working in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12743582#M958</link>
    <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I think this strategy will work.&lt;/P&gt;&lt;P&gt;To make sure I understand, I can create a separate tab on Files, Folders, and Items similar to VDS with Datasheet.&lt;/P&gt;&lt;P&gt;Let's call it "Job Numbers," and when the user selects the tab, this is when the code should run and collect the parentIDs and display them in the custom tab.&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 13:26:25 GMT</pubDate>
    <dc:creator>J_Dumont</dc:creator>
    <dc:date>2024-04-30T13:26:25Z</dc:date>
    <item>
      <title>Custom Object Where used not working</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12736102#M956</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I created a Custom Object, and I can Link Files, Folders, and Items without issue.&lt;/P&gt;&lt;P&gt;If I go to a file, the Custom Object is shown in the Where Used.&lt;/P&gt;&lt;P&gt;However, this does not work for Items and Folders.&lt;/P&gt;&lt;P&gt;It's possible for an Item or Folder to be linked to multiple Custom Objects, and it would be nice to see where they were used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:22:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12736102#M956</guid>
      <dc:creator>J_Dumont</dc:creator>
      <dc:date>2024-04-26T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Object Where used not working</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12742812#M957</link>
      <description>&lt;P&gt;You can link Items and Folders to Custom Objects. Unfortunately, the "Where Used" information is not directly accessible. To workaround, you need to evaluate the custom objects' content. I have an implementation sample as part of the extended Data Standard sample: the selected ECO is linked to multiple tasks:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkusKoechl_0-1714461021798.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1356363i4588C7C18F1E29A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkusKoechl_0-1714461021798.png" alt="MarkusKoechl_0-1714461021798.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The code to list these "Where Used" links is the variable _allCustents, a search result that returns all tasks. The loop iterates these and checks for active links. This approach is highly risky in impacting performance; the code snippet below is for "demo purposes" only, as the search may return thousands of custom objects. But, if you create links programmatically, the code can add more properties to the link target, optimizing the search. My implementation limits the search result leveraging the names of the tasks including the ECO number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;$_allCustents = mgetCustomEntityList $_CoName
		$_LinkedCustentIDs = @()
		Foreach ($_Custent in $_allCustents)
		{
			$_AllLinks1 = $vault.DocumentService.GetLinksByParentIds(@($_Custent.Id),@("CO"))
			If($_AllLinks1) #the current custent has links; check that the current ECO is one of these link's target
			{
				$_match = $_AllLinks1 | Where { $_.ToEntId -eq $mCoId }
				If($_match){ $_LinkedCustentIDs += $_Custent.Id}
			}		
		}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 07:42:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12742812#M957</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2024-04-30T07:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Object Where used not working</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12743582#M958</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I think this strategy will work.&lt;/P&gt;&lt;P&gt;To make sure I understand, I can create a separate tab on Files, Folders, and Items similar to VDS with Datasheet.&lt;/P&gt;&lt;P&gt;Let's call it "Job Numbers," and when the user selects the tab, this is when the code should run and collect the parentIDs and display them in the custom tab.&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:26:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12743582#M958</guid>
      <dc:creator>J_Dumont</dc:creator>
      <dc:date>2024-04-30T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Object Where used not working</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12743761#M959</link>
      <description>&lt;P&gt;Yes, I confirm.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:25:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-where-used-not-working/m-p/12743761#M959</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2024-04-30T14:25:54Z</dc:date>
    </item>
  </channel>
</rss>

