<?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: Email scripts not working for multi selection field in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7784319#M2855</link>
    <description>&lt;P&gt;Your subject line may be the issue. You can see this in the first part of the bad email where the values you attempted to put into the subject spilled out of the header information into the body of the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my first test would be to simplify the subject and try again. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;email.subject = 'Spare Equipment Part Release Alert ' + item.REQUEST_NUMBER&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt; + ' '&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;+ item.APPLY_FOR_MACHINE&lt;/FONT&gt;&lt;/STRIKE&gt;;&lt;/PRE&gt;&lt;PRE&gt;email.subject = 'Spare Equipment Part Release Alert ' + item.REQUEST_NUMBER;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Feb 2018 17:31:42 GMT</pubDate>
    <dc:creator>john.denner</dc:creator>
    <dc:date>2018-02-16T17:31:42Z</dc:date>
    <item>
      <title>Email scripts not working for multi selection field</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7757628#M2850</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had written a script to send email when a request go into a state, However, the APPLY_FOR_MACHINE field is a multi select picklist field.&lt;/P&gt;&lt;P&gt;If a user only select one option, then the email will went out well however if there is multi selection then the email will be a mess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var email = new Email();&lt;/P&gt;&lt;P&gt;email.to = 'Tommy@xxx.com, Chris@xxx.com';&lt;BR /&gt;email.cc = 'Carol@xxx.com';&lt;BR /&gt;email.subject = 'Spare Equipment Part Release Alert '+item.REQUEST_NUMBER+ ' '+item.APPLY_FOR_MACHINE+' ';&lt;BR /&gt;email.body = '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;&amp;lt;span style="color:blue;font-weight:bold;font-size:25"&amp;gt;Workflow Notification&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;Hi Tommy and Chris,&amp;lt;/br&amp;gt;&amp;lt;br&amp;gt;'+item.REQUEST_NUMBER+' '+item.APPLY_FOR_MACHINE+', has been placed for release by '+item.master.owner.firstName+' '+item.master.owner.lastName+&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;'&amp;lt;br/&amp;gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div style="text-align: left; padding-left: 200px"&amp;gt;&amp;lt;font size="2" face="Verdana, Arial, Helvetica, sans-serif"&amp;gt;&amp;lt;a href="&lt;A href="https://memjet.autodeskplm360.net/workspace#workspaceid=88&amp;amp;amp;dmsid=" target="_blank"&gt;https://memjet.autodeskplm360.net/workspace#workspaceid=88&amp;amp;amp;dmsid=&lt;/A&gt;' + dmsID +&lt;BR /&gt;'&amp;amp;amp;tab=itemdetails"&amp;gt;Click link to view Item Details for ' + item.descriptor.descriptor + '';&lt;BR /&gt;&lt;BR /&gt;email.send(); //send email to user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 05:47:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7757628#M2850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T05:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Email scripts not working for multi selection field</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7761014#M2851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies, I noticed my lower part of my post description was not posted, no wonder nobody can understand my issue, let me re post the missing description.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mention on my first post, I had written a script to send email to users when a workflow request has proceed to a state, however one of the field, the APPLY FOR MACHINE field is a multi selection field, when a user make a single selection, my email script work well however, when a user make multi selection, the email will print out all the selection and also my script as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had attached the output of a single selection email and a multi selection email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know, has anyone encounter this before or maybe can share your experience on how to send paragraph using scripting?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be deeply appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carol Mak&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 03:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7761014#M2851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T03:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Email scripts not working for multi selection field</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7762635#M2852</link>
      <description>&lt;P&gt;So to confirm, the email addresses are working, but the multiple info selected in the multi-select field are not correctly outputted to the email?&lt;/P&gt;
&lt;P&gt;I'm able to send an email with the items in the multiselect field in the body of my email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only issue I see is the order of the items may not be correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 15:32:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7762635#M2852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Email scripts not working for multi selection field</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7773218#M2853</link>
      <description>&lt;P&gt;Hi leungicp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your reply.&lt;/P&gt;&lt;P&gt;May I know did you try using my script or you have your own? If you have a script,&amp;nbsp;may I look at how you compose the body of the email.&lt;/P&gt;&lt;P&gt;I would not mind the selection is not in order but I do not want my script to appear at the bottom of the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carol Mak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 08:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7773218#M2853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Email scripts not working for multi selection field</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7773949#M2854</link>
      <description>&lt;P&gt;I used my own script.&amp;nbsp; I think your question is the formatting of the email.&amp;nbsp; I would create a test script to focus only on&amp;nbsp;&lt;SPAN&gt;item.APPLY_FOR_MACHINE.&amp;nbsp; See what happens when you choose 1 item and send to yourself.&amp;nbsp; See what happens to the formatting when you choose 2 items and send to yourself.&amp;nbsp; Knowing this, then you can build your email body with all the other information required.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:32:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7773949#M2854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Email scripts not working for multi selection field</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7784319#M2855</link>
      <description>&lt;P&gt;Your subject line may be the issue. You can see this in the first part of the bad email where the values you attempted to put into the subject spilled out of the header information into the body of the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my first test would be to simplify the subject and try again. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;email.subject = 'Spare Equipment Part Release Alert ' + item.REQUEST_NUMBER&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt; + ' '&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;+ item.APPLY_FOR_MACHINE&lt;/FONT&gt;&lt;/STRIKE&gt;;&lt;/PRE&gt;&lt;PRE&gt;email.subject = 'Spare Equipment Part Release Alert ' + item.REQUEST_NUMBER;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Feb 2018 17:31:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/email-scripts-not-working-for-multi-selection-field/m-p/7784319#M2855</guid>
      <dc:creator>john.denner</dc:creator>
      <dc:date>2018-02-16T17:31:42Z</dc:date>
    </item>
  </channel>
</rss>

