<?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 Assign/Update Items is different via API then UI in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263765#M1413</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example I've got an Inventor file with part number 12345 checked into the Vault.&lt;/P&gt;&lt;P&gt;There's also an existing Item with with Item number 12345.&lt;/P&gt;&lt;P&gt;When I use the Assign/Update Item command via the UI in the Vault client, the file will get linked to that existing Item as a secondary link (as I would expect).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I use the API function to Assign/Update an Item (via the link below), it will create a new Item (with a different number), instead of linking it as a secondary link to the existing Item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a separate step that needs to be done first if I do this via API?&lt;/P&gt;&lt;P&gt;Or am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://justonesandzeros.typepad.com/blog/2014/04/assigning-a-file-to-an-item.html" target="_blank"&gt;https://justonesandzeros.typepad.com/blog/2014/04/assigning-a-file-to-an-item.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 08:31:39 GMT</pubDate>
    <dc:creator>Majjek</dc:creator>
    <dc:date>2023-09-25T08:31:39Z</dc:date>
    <item>
      <title>Assign/Update Items is different via API then UI</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263765#M1413</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example I've got an Inventor file with part number 12345 checked into the Vault.&lt;/P&gt;&lt;P&gt;There's also an existing Item with with Item number 12345.&lt;/P&gt;&lt;P&gt;When I use the Assign/Update Item command via the UI in the Vault client, the file will get linked to that existing Item as a secondary link (as I would expect).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I use the API function to Assign/Update an Item (via the link below), it will create a new Item (with a different number), instead of linking it as a secondary link to the existing Item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a separate step that needs to be done first if I do this via API?&lt;/P&gt;&lt;P&gt;Or am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://justonesandzeros.typepad.com/blog/2014/04/assigning-a-file-to-an-item.html" target="_blank"&gt;https://justonesandzeros.typepad.com/blog/2014/04/assigning-a-file-to-an-item.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 08:31:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263765#M1413</guid>
      <dc:creator>Majjek</dc:creator>
      <dc:date>2023-09-25T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Assign/Update Items is different via API then UI</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263871#M1414</link>
      <description>&lt;P&gt;You need to set the option&amp;nbsp;&lt;I&gt;autoAssignDuplicates &lt;/I&gt;to true. The API call is independent of the Item assignment setting in the behavior configuration.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 09:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263871#M1414</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2023-09-25T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assign/Update Items is different via API then UI</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263930#M1415</link>
      <description>&lt;P&gt;Thanks Markus, so simple...&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 09:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12263930#M1415</guid>
      <dc:creator>Majjek</dc:creator>
      <dc:date>2023-09-25T09:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Assign/Update Items is different via API then UI</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12275174#M1416</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33301"&gt;@Markus.Koechl&lt;/a&gt;&amp;nbsp;I do have another issue.&lt;/P&gt;&lt;P&gt;When I have an assembly and perform a Promote action on that assembly file alone, I can see the the associations with (3) underlying parts are created correctly in the ItemsAndFiles object (with the&amp;nbsp;ItemAssignAll setting set to Yes).&lt;/P&gt;&lt;P&gt;But when I select all 3 underlying parts and the assembly in 1 Promote action, I can see all items are created, but not all associations to the children, only 1 association to 1 file is created..&lt;/P&gt;&lt;P&gt;When I commit the Item, I can see in Vault that the 2 other rows are disabled in the Item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what' causing this?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 13:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12275174#M1416</guid>
      <dc:creator>Majjek</dc:creator>
      <dc:date>2023-09-29T13:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Assign/Update Items is different via API then UI</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12282242#M1417</link>
      <description>If I understood your workflow correctly that you are looking at the assembly's Item BOM result, you need to change the setting "Rows that will be turned on during Assign Item" to "All"</description>
      <pubDate>Tue, 03 Oct 2023 16:10:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12282242#M1417</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2023-10-03T16:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign/Update Items is different via API then UI</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12286670#M1418</link>
      <description>&lt;P&gt;That setting is turned on, that's why I assume it should show all rows.&lt;/P&gt;&lt;P&gt;And it does show all rows and assign all items when I perform the Assign/Update action on just the assembly (without selecting the child parts).&lt;/P&gt;&lt;P&gt;But when I select the assembly and the 3 children and then perform the Assign/Update action, it shows only 1 of the 3 rows, but creates all items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm that this is not only the result from my own code, but also when using the Assign/Update Item button from Vault.&lt;/P&gt;&lt;P&gt;So they're behaving the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried looking at the BOM object of the file, but couldn't find anything strange in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I created a copy of that .iam (not the children) in Inventor and checked it in into the Vault.&lt;/P&gt;&lt;P&gt;When performing the same actions, it now behaves as expected, so the BOM is complete.&lt;/P&gt;&lt;P&gt;The only thing that's different between the BOM object of the old and new file, is that the old BOM object still refers to the first file versions (file ID) of the parts, because it was never checked in to Vault from Inventor after the initial check in.&lt;/P&gt;&lt;P&gt;The new .iam uses the latest file versions (which makes sense of course).&lt;/P&gt;&lt;P&gt;But that shouldn't be an issue in my opinion, and also, it still shows 1 item, instead of 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 12:22:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/assign-update-items-is-different-via-api-then-ui/m-p/12286670#M1418</guid>
      <dc:creator>Majjek</dc:creator>
      <dc:date>2023-10-05T12:22:19Z</dc:date>
    </item>
  </channel>
</rss>

