<?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 Re: Redirect URL through business rule in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744888#M401814</link>
    <description>Thanks Everyone.

We did it with help of writing onLoad client script and then used navigation parameter. 
From business rule we are passing a variable through g_scratchPad.</description>
    <pubDate>Wed, 01 Jul 2020 06:35:43 GMT</pubDate>
    <dc:creator>Community Alums</dc:creator>
    <dc:date>2020-07-01T06:35:43Z</dc:date>
    <item>
      <title>Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744877#M401803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need to redirect the URL to a different page through business rule.&lt;/P&gt;
&lt;P&gt;I am using gs.setRedirect(url) by setting up the url.&lt;/P&gt;
&lt;P&gt;Once the condition are true, it showing the form using the above parameter but it's redirecting to new url but opening the form in the bottom same page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 08:58:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744877#M401803</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2020-06-28T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744878#M401804</link>
      <description>&lt;P&gt;Hi Amit&lt;/P&gt;
&lt;P&gt;You Might find this Thread Helpful&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=b3fe02e5dbc0bf48d82ffb243996199c" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=b3fe02e5dbc0bf48d82ffb243996199c&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=9f804f98db6e7b40d58ea345ca9619ca" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=9f804f98db6e7b40d58ea345ca9619ca&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please Mark Correct and Helpful&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Gaurav Shirsat&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 09:17:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744878#M401804</guid>
      <dc:creator>Gaurav Shirsat</dc:creator>
      <dc:date>2020-06-28T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744879#M401805</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;
&lt;P&gt;Please check with your function it should be,&lt;/P&gt;
&lt;P&gt;action.setRedirectURL("URL");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark if it helps!!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 09:37:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744879#M401805</guid>
      <dc:creator>Priya Shid1</dc:creator>
      <dc:date>2020-06-28T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744880#M401806</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;
&lt;P&gt;May I know how you are passing URL?&lt;/P&gt;
&lt;P&gt;Are you passing directly as parameter or are you storing in any variable and then passing.&lt;/P&gt;
&lt;P&gt;try with below.&lt;/P&gt;
&lt;P&gt;gs.setRedirectURL("try to paste your url here directly ");&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pooja M&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 10:15:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744880#M401806</guid>
      <dc:creator>Pooja Mallikarj</dc:creator>
      <dc:date>2020-06-28T10:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744881#M401807</link>
      <description>&lt;P&gt;Hi Pooja,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried pasting the URL directly in the parameter, still the new page is displayed in the bottom of the current page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 14:34:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744881#M401807</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2020-06-28T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744882#M401808</link>
      <description>&lt;P&gt;Hi Priya,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with&amp;nbsp;action.setRedirectURL("URL"), but nothing happened with this parameter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 14:35:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744882#M401808</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2020-06-28T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744883#M401809</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;
&lt;P&gt;you cannot use action in business rule; only allowed is gs object for redirection&lt;/P&gt;
&lt;P&gt;you cannot open the page in new tab using gs.setRedirect(url)&lt;/P&gt;
&lt;P&gt;To which page you need to take&lt;/P&gt;
&lt;P&gt;sample below&lt;/P&gt;
&lt;P&gt;gs.setRedirect('/incident.do?sys_id=-1'); // this will take to new incident record&lt;/P&gt;
&lt;P&gt;Mark &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Correct if this solves your issue and also mark &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Helpful if you find my response worthy based on the impact.&lt;BR /&gt;Thanks&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 14:40:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744883#M401809</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-06-28T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744884#M401810</link>
      <description>&lt;P&gt;Hi Ankur,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually i am setting this parameter in display business rule which have other logic.&lt;/P&gt;
&lt;P&gt;When all the validation passed, then i need to redirect the page to this specific record with sysid.&lt;/P&gt;
&lt;P&gt;I tried with the above parameter but it's not redirecting to that page rather opening that specific records in the bottom of the current page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 14:53:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744884#M401810</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2020-06-28T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744885#M401811</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;
&lt;P&gt;I read in some article&amp;nbsp;action.setRedirectURL(url) is working to redirect, can you give a try,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Murali&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 15:04:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744885#M401811</guid>
      <dc:creator>Muralidharan BS</dc:creator>
      <dc:date>2020-06-28T15:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744886#M401812</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;
&lt;P&gt;So the redirection code is in display BR?&lt;/P&gt;
&lt;P&gt;Can you give complete context of what you are trying to achieve?&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 15:06:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744886#M401812</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-06-28T15:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744887#M401813</link>
      <description>&lt;P&gt;Yes, redirection code is written in display BR.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are validating some mandatory rules by displaying error message in the form if their is any fields which is blank in the child table. If all the rules are passed, we are comparing the flag value and then performing a redirection to the parent table.&lt;/P&gt;
&lt;P&gt;Parent form is getting displayed with above method but not as a new URL but in the bottom of the current page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 15:35:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744887#M401813</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2020-06-28T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744888#M401814</link>
      <description>Thanks Everyone.

We did it with help of writing onLoad client script and then used navigation parameter. 
From business rule we are passing a variable through g_scratchPad.</description>
      <pubDate>Wed, 01 Jul 2020 06:35:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744888#M401814</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2020-07-01T06:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744889#M401815</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;
&lt;P&gt;I have a after BR but want to redirect it to a url in portal. Can you please help me with same ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 07:32:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744889#M401815</guid>
      <dc:creator>Deepika Mishra</dc:creator>
      <dc:date>2021-03-30T07:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect URL through business rule</title>
      <link>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744890#M401816</link>
      <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="aafd34de1baf9050d2ccea89bd4bcb52"&gt;@Deepika Mishra&lt;/SN-MENTION&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Were you able to solve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:12:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/redirect-url-through-business-rule/m-p/1744890#M401816</guid>
      <dc:creator>Jishnu Nair</dc:creator>
      <dc:date>2021-11-02T06:12:44Z</dc:date>
    </item>
  </channel>
</rss>

