<?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: Add/Remove Attachments via scripting in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8907035#M1824</link>
    <description>You can absolutely batch load (or delete or download) attachments. But do this through batch calling the rest API. There are some utilities around that people have written to batch call the rest API. The upload attachment API is a special case API because it uses a binary payload.&lt;BR /&gt;&lt;BR /&gt;But this is using rest API. You cannot do this with JavaScript API.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can indeed upload to the working version and then release this through a CO.&lt;BR /&gt;&lt;BR /&gt;Also, you can upload to a released version if you give the user the relevant permission (see special permissions section). This applies whether manual or API attachment upload.&lt;BR /&gt;&lt;BR /&gt;Of course normally you would not give anyone permission to edit an item after release - but it is possible by granting the special permission.&lt;BR /&gt;</description>
    <pubDate>Fri, 12 Jul 2019 20:19:17 GMT</pubDate>
    <dc:creator>philipfrench</dc:creator>
    <dc:date>2019-07-12T20:19:17Z</dc:date>
    <item>
      <title>Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8843993#M1819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if it is possible to add/remove attachments with an action script?&lt;/P&gt;&lt;P&gt;When I look at the help I see nothing about that:&amp;nbsp;&lt;A title="Autodesk GUID" href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/ENU/PLM-360-Scripting/files/GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65-htm.html" target="_blank" rel="noopener"&gt;Autodesk GUID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;has already asked but did you create this feature since 2017?&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/fusion-lifecycle-forum/remove-attachments-via-scripting/m-p/7491825#M7180" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-lifecycle-forum/remove-attachments-via-scripting/m-p/7491825#M7180&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 08:36:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8843993#M1819</guid>
      <dc:creator>PLM-Sylvain.Bailly</dc:creator>
      <dc:date>2019-06-11T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8846888#M1820</link>
      <description>&lt;P&gt;I don't think it exists via scripting.&amp;nbsp; I've been looking for something like this since the beginning because I would be able to auto-upload files rather than have a human do it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8846888#M1820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8846924#M1821</link>
      <description>&lt;P&gt;you are right:&lt;BR /&gt;javascript access to item.attachments array is read-only.&lt;BR /&gt;you cannot create/edit/upload/download attachments through javascript.&lt;BR /&gt;you CAN read the metadata for any attachments that do exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You CAN create/edit/upload/download attachments through UI, or ReST API.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 12:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8846924#M1821</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2019-06-12T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8847342#M1822</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:39:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8847342#M1822</guid>
      <dc:creator>PLM-Sylvain.Bailly</dc:creator>
      <dc:date>2019-06-12T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8906795#M1823</link>
      <description>&lt;P&gt;Does this mean that it is possible to bulk upload attachments? Also, will this not need a CO if the item is already released in I&amp;amp;B workspace?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 17:55:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8906795#M1823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-12T17:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8907035#M1824</link>
      <description>You can absolutely batch load (or delete or download) attachments. But do this through batch calling the rest API. There are some utilities around that people have written to batch call the rest API. The upload attachment API is a special case API because it uses a binary payload.&lt;BR /&gt;&lt;BR /&gt;But this is using rest API. You cannot do this with JavaScript API.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can indeed upload to the working version and then release this through a CO.&lt;BR /&gt;&lt;BR /&gt;Also, you can upload to a released version if you give the user the relevant permission (see special permissions section). This applies whether manual or API attachment upload.&lt;BR /&gt;&lt;BR /&gt;Of course normally you would not give anyone permission to edit an item after release - but it is possible by granting the special permission.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jul 2019 20:19:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8907035#M1824</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2019-07-12T20:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8942775#M1825</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Attachments are dataObjects, you can check the syntax if it works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="dp-highlighter"&gt;&lt;DIV class="bar"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: Consolas, 'Courier New', Courier, mono, serif !important; vertical-align: baseline; color: black; background-color: inherit;"&gt;var&amp;nbsp;myDoc&amp;nbsp;=&amp;nbsp;event.target;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: Consolas, 'Courier New', Courier, mono, serif !important; vertical-align: baseline; color: black; background-color: inherit;"&gt;myDoc.removeDataObject("the&amp;nbsp;full&amp;nbsp;file&amp;nbsp;name&amp;nbsp;of&amp;nbsp;the&amp;nbsp;attachment.pdf);&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Good luck,&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 11:55:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8942775#M1825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-01T11:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Attachments via scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8943377#M1826</link>
      <description>&lt;P&gt;I think "&lt;SPAN&gt;removeDataObject()" refers to either the in-browser javascript (called the Document Object Model, which is effectively inside the browser), and/or Adobe's own javascript API for driving automation of PDFs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't believe either of these (browser scripting, Adobe scripting) are relevant to the javascript API available&amp;nbsp;in Fusion Lifecycle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This supports "standard javascript language stuff", plus the FLC API, which is documented here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://help.autodesk.com/view/PLM/ENU/?guid=GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65#GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65__SECTION_2C20779B6A9E49D19BBC9E4E02836D90" target="_blank"&gt;http://help.autodesk.com/view/PLM/ENU/?guid=GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65#GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65__SECTION_2C20779B6A9E49D19BBC9E4E02836D90&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can see it refers to item.attachments array. "You can GET..."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but there are no methods() on this array (unlike others).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I said before, FLC javascript has only read-only access to the metadata of the item attachments.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:42:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/add-remove-attachments-via-scripting/m-p/8943377#M1826</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2019-08-01T15:42:51Z</dc:date>
    </item>
  </channel>
</rss>

