<?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>question How to write Run script in workflow to get the task assign to user in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659277#M231056</link>
    <description>&lt;P&gt;I have requirement 75% SLA breached notifications do not send to particular person if he is assigned to person also.&lt;/P&gt;
&lt;P&gt;for this I wrote run script to restrict it but notification is not sending&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can any one tell the what are the mistakes I did in scripting.&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/39923iEB04B8AAEF5C76CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/39913i3695F7539AB4040E/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/39912iF16A39F5D9958E2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 13:26:56 GMT</pubDate>
    <dc:creator>manasa32</dc:creator>
    <dc:date>2022-09-01T13:26:56Z</dc:date>
    <item>
      <title>How to write Run script in workflow to get the task assign to user</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659277#M231056</link>
      <description>&lt;P&gt;I have requirement 75% SLA breached notifications do not send to particular person if he is assigned to person also.&lt;/P&gt;
&lt;P&gt;for this I wrote run script to restrict it but notification is not sending&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can any one tell the what are the mistakes I did in scripting.&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/39923iEB04B8AAEF5C76CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/39913i3695F7539AB4040E/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/39912iF16A39F5D9958E2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 13:26:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659277#M231056</guid>
      <dc:creator>manasa32</dc:creator>
      <dc:date>2022-09-01T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Run script in workflow to get the task assign to user</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659278#M231057</link>
      <description>&lt;P&gt;Hello Manasa,&lt;/P&gt;
&lt;P&gt;In your 3rd screenshot, modify the 'if condition' and put yes in quotes like 'yes'&lt;/P&gt;
&lt;P&gt;if(assignedTo == ' yes')&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Abhinay&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:43:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659278#M231057</guid>
      <dc:creator>Abhinay1</dc:creator>
      <dc:date>2022-09-01T14:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Run script in workflow to get the task assign to user</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659279#M231058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you are comparing with variable yes in line 4&lt;/P&gt;
&lt;P&gt;but it should be string 'yes'&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:45:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659279#M231058</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2022-09-01T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Run script in workflow to get the task assign to user</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659280#M231059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Adding one more thing, replace&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;answer.push(assignedTo);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;With&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;answer.push(current.task.assigned_to);&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:56:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659280#M231059</guid>
      <dc:creator>Muhammad Khan</dc:creator>
      <dc:date>2022-09-01T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Run script in workflow to get the task assign to user</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659281#M231060</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="10d1c77fdbad58506064eeb5ca96192a"&gt;@manasa&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 09:31:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-run-script-in-workflow-to-get-the-task-assign-to/m-p/659281#M231060</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2022-09-20T09:31:33Z</dc:date>
    </item>
  </channel>
</rss>

