<?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: Edit a workspace item field with a script that runs on a workflow transition in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330997#M4865</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for the quick reply.&amp;nbsp; The pick list is in the same workspace and someone could chose from the list before the transition has been one.&amp;nbsp; So they could choose the pick list option of "AS IS" but then when we run the workflow and the disposition is overriden and now the final disposition code is "Reman".&amp;nbsp; we would want that final dispostion field to change from AS IS to Reman.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that made sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2016 18:24:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-17T18:24:08Z</dc:date>
    <item>
      <title>Edit a workspace item field with a script that runs on a workflow transition</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330672#M4863</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to edit a field in a workspace with a script running on a workflow transition.&amp;nbsp; The field name ID is FINAL_DISPOSITION and it is a pick list field.&amp;nbsp; The script I have consists of:&lt;/P&gt;&lt;P&gt;item.FINAL_DISPOSITION === 'REMAN [72]'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first time ever writing&amp;nbsp; a script and it doesn't seem to want to work.&amp;nbsp; Could anyone help me out on how to get this script to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 16:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330672#M4863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T16:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a workspace item field with a script that runs on a workflow transition</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330702#M4864</link>
      <description>&lt;P&gt;Is the picklist in the same workspace and does someone choose the pick list item first before they click on the transistion? &amp;nbsp;The pick list should have a field ID too. &amp;nbsp;I'm think this should work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;item.FINAL_DISPOSITION = item.PICKLIST_FIELDID&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 16:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330702#M4864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T16:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a workspace item field with a script that runs on a workflow transition</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330997#M4865</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for the quick reply.&amp;nbsp; The pick list is in the same workspace and someone could chose from the list before the transition has been one.&amp;nbsp; So they could choose the pick list option of "AS IS" but then when we run the workflow and the disposition is overriden and now the final disposition code is "Reman".&amp;nbsp; we would want that final dispostion field to change from AS IS to Reman.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that made sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 18:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6330997#M4865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T18:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a workspace item field with a script that runs on a workflow transition</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6332058#M4866</link>
      <description>&lt;P&gt;Hi Brandon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please tell me if I understand correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you created in your Workspace the picklist field FINAL_DISPOSITION. This field does not have a "Required" validation set. &amp;nbsp;The picklist entries you have manually entered and are&amp;nbsp;a list of items from another Workspace ("As Is" and "REMAN [72]" have been manually entered by you or your admin).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar to this:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/240283iCCFB197C2365498D/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="field final disposition.png" title="field final disposition.png" align="left" /&gt;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that your user can create an item and decide to either edit the Final Disposition field or not. Like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/240286iC220B3F0C4122D38/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="create final disposition.png" title="create final disposition.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And on workflow transition, you want to set the Final Disposition field to "REMAN [72]" depending on some rule, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case the following code is what you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;item.FINAL_DISPOSITION = "REMAN [72]";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am curious, when you are saying "REMAN [72]", are you saying that it is the 72th item in the list?&amp;nbsp;&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>Wed, 18 May 2016 07:38:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6332058#M4866</guid>
      <dc:creator>dany.poudrier</dc:creator>
      <dc:date>2016-05-18T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a workspace item field with a script that runs on a workflow transition</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6332681#M4867</link>
      <description>&lt;P&gt;Hi Dany,&lt;/P&gt;&lt;P&gt;You are correct in the pick list field in the workspace is not Required and that the list is a manual list that we made but they are not from another workspace, all of this is happening within the same workspace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the exact flow.&amp;nbsp; A product gets returned to us.&amp;nbsp; The user creates an item in that workspace and by a general look of the product/reading the return reason, they select a disposition code from that pick list we are talking about.&amp;nbsp; Then the product goes through the workflow (different types of product testing) and based on the test results, the user may choose a different final disposition code.&amp;nbsp; This is done as the final step on the workflow.&amp;nbsp; When they decide the final dispostion code, they choose a specific workflow transition and that is where i need the script to be.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The [72] just means the internal warehouse that the product will be transfered to.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 13:03:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6332681#M4867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a workspace item field with a script that runs on a workflow transition</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6333060#M4868</link>
      <description>&lt;P&gt;The script you gave me worked, thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 13:52:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/edit-a-workspace-item-field-with-a-script-that-runs-on-a/m-p/6333060#M4868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T13:52:01Z</dc:date>
    </item>
  </channel>
</rss>

