<?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 Redirect to problem record in New Delhi SNUG</title>
    <link>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823158#M565</link>
    <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement i.e. to o&lt;SPAN&gt;pen a problem form whenever in the Change form we change state from schedule to implement. Remember we don't need to create a problem record but just open a problem record. (also how can we populate a few fields on the problem record like description or short description)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can achieve this with UI actions but I wanna do it using business rules, is it achievable?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the script I wrote but it is not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;executeRule(current, previous&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/*null when async*/&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(current.state ==&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Implement'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;&amp;amp; previous.state ==&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Scheduled'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;redirectURL =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'incident.do?sys_id=-1'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(redirectURL);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;})(current, previous);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 12 Feb 2024 05:13:27 GMT</pubDate>
    <dc:creator>Southsayer</dc:creator>
    <dc:date>2024-02-12T05:13:27Z</dc:date>
    <item>
      <title>Redirect to problem record</title>
      <link>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823158#M565</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement i.e. to o&lt;SPAN&gt;pen a problem form whenever in the Change form we change state from schedule to implement. Remember we don't need to create a problem record but just open a problem record. (also how can we populate a few fields on the problem record like description or short description)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can achieve this with UI actions but I wanna do it using business rules, is it achievable?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the script I wrote but it is not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;executeRule(current, previous&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/*null when async*/&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(current.state ==&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Implement'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;&amp;amp; previous.state ==&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Scheduled'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;redirectURL =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'incident.do?sys_id=-1'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;action.setRedirectURL(redirectURL);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;})(current, previous);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Feb 2024 05:13:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823158#M565</guid>
      <dc:creator>Southsayer</dc:creator>
      <dc:date>2024-02-12T05:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect to problem record</title>
      <link>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823368#M566</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/295390"&gt;@Southsayer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Seems like the question is not clear, could you please explain more on this?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 08:04:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823368#M566</guid>
      <dc:creator>_Gaurav</dc:creator>
      <dc:date>2024-02-12T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect to problem record</title>
      <link>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823502#M567</link>
      <description>&lt;P&gt;HI &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/295390"&gt;@Southsayer&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Confirm if my understanding is correct for your question above.&lt;/P&gt;&lt;P&gt;You want to create a business rule on run condition (when state of the change changes from scheduled to implement). This business rule should then redirect the user to a new problem form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions for clarification are:&lt;/P&gt;&lt;P&gt;Q1. What fields do you want to populate when you open a new problem record.&lt;/P&gt;&lt;P&gt;Q2. Where do you intend to open the new problem record in same window or in new window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions:&lt;/P&gt;&lt;P&gt;I would suggest to go with the UI action for your scenario since it might cause a bad user experience where users are prompted directly to a problem record whenever state changes or have a confirmation message to open a new record. It would be great if you can explain feasibility of you use case.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 09:56:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/new-delhi-snug/redirect-to-problem-record/m-p/2823502#M567</guid>
      <dc:creator>Shivpoojan</dc:creator>
      <dc:date>2024-02-12T09:56:11Z</dc:date>
    </item>
  </channel>
</rss>

