<?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 Create a Demand task automatically when Demand goes to screening state. in SPM forum</title>
    <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011904#M18942</link>
    <description>&lt;P&gt;It has to be a business rule I believe. Can someone share some example code?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 14:56:51 GMT</pubDate>
    <dc:creator>Chandler2</dc:creator>
    <dc:date>2021-04-13T14:56:51Z</dc:date>
    <item>
      <title>Create a Demand task automatically when Demand goes to screening state.</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011904#M18942</link>
      <description>&lt;P&gt;It has to be a business rule I believe. Can someone share some example code?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 14:56:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011904#M18942</guid>
      <dc:creator>Chandler2</dc:creator>
      <dc:date>2021-04-13T14:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Demand task automatically when Demand goes to screening state.</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011905#M18943</link>
      <description>&lt;P&gt;I would recommend using Flow designer to do this. It would easier to manage and require less coding.&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;DIV id="mstr_highlight_precard" style="position: absolute; left: 0px; top: 0px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Apr 2021 19:00:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011905#M18943</guid>
      <dc:creator>Miguel Donayre</dc:creator>
      <dc:date>2021-04-13T19:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Demand task automatically when Demand goes to screening state.</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011906#M18944</link>
      <description>&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/106003i91FAA57D7CF1CDF5/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;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/105999iD3983E5202E8BD0B/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;DIV id="mstr_highlight_precard" style="position: absolute; left: 0px; top: 0px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Apr 2021 19:11:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011906#M18944</guid>
      <dc:creator>Miguel Donayre</dc:creator>
      <dc:date>2021-04-13T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Demand task automatically when Demand goes to screening state.</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011907#M18945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks, I got the answer.&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;1. I see that it can be done with a before and after BR both. So if one has to do with a BR then which is the correct way and why? Can I use one BR to create multiple records, each with different values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;2.&amp;nbsp;while doing with a flow, will I be able to create more than one record, each with different values??&amp;nbsp;While populating demand task fields,&amp;nbsp;I have to concatenate Demand field values and/or Demand field value with a string and populate in one demand task field. How and where to put that code?&lt;/P&gt;
&lt;P&gt;3. What should I select in the Run trigger? I read the docs but not clear to me.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 03:32:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011907#M18945</guid>
      <dc:creator>Chandler2</dc:creator>
      <dc:date>2021-04-15T03:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Demand task automatically when Demand goes to screening state.</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011908#M18946</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can with the business rule, and I would make them After business rules. You want to create them once the state changes. You can also create multiple demand tasks. You would just have to code it. I don't have any saved to share... it's been a while since I used this method.&lt;/P&gt;
&lt;P&gt;For the flow designer, YES, you can. You can even set up creating a task to happen only when the task above it is complete. All you have to do is add the create task action after the 1st one.&amp;nbsp;&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/106000i66F2EDDCF7F5F58A/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;The trigger can be tricky. You will have to read each one of the explanations to see which one fits your need.&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/106001i3123426874D7AF64/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;I usually use an updated one when I know something will change, like your example of the state. But if I need to create something when some are created ONLY, I will add the create trigger.&lt;/P&gt;
&lt;P&gt;There are some good videos on the doc that help explain it, and there is some training to help with flow designer&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nowlearning.service-now.com/lxp?id=overview&amp;amp;sys_id=14111ca61bf21c10dad363d07e4bcb3b&amp;amp;type=course" target="_blank"&gt;https://nowlearning.service-now.com/lxp?id=overview&amp;amp;sys_id=14111ca61bf21c10dad363d07e4bcb3b&amp;amp;type=course&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/concept/flow-designer.html" target="_blank"&gt;https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/concept/flow-designer.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;as far as combining two fields, you can try to use the script option for that field&amp;nbsp;&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/105998iE8C4C16C6672E3E9/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;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/105995iBEF2B3623150C25C/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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that helps you out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="mstr_highlight_precard" style="position: absolute; left: 0px; top: 0px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 23:05:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011908#M18946</guid>
      <dc:creator>Miguel Donayre</dc:creator>
      <dc:date>2021-04-16T23:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Demand task automatically when Demand goes to screening state.</title>
      <link>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011909#M18947</link>
      <description>&lt;P&gt;Thank you so much for the detailed response.&lt;/P&gt;
&lt;P&gt;My question on the trigger was about the options we select in Run Trigger:&lt;/P&gt;
&lt;P&gt;1. For each unique change&lt;/P&gt;
&lt;P&gt;2. Once etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I went through the doc on it but it was hard to understand which is saying what. If you can share an example when to use which option.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:09:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/create-a-demand-task-automatically-when-demand-goes-to-screening/m-p/1011909#M18947</guid>
      <dc:creator>Chandler2</dc:creator>
      <dc:date>2021-04-20T06:09:27Z</dc:date>
    </item>
  </channel>
</rss>

