The CreatorCon Call for Content is officially open! Get started here.

Business rule should not run on Service portal, how we can do this ?

manishaidhate
Mega Expert

I want to run Business Rule only for service now form (Approval form) not to Service portal Approval Form

if ((current.comments == '') || (current.u_rejection_reason == '')) {

gs.addInfoMessage('Comments and Rejection reason are required to reject a change request');

current.state = previous.state;

current.setAbortAction(true);

}

1 ACCEPTED SOLUTION

Chandu Telu
Tera Guru

HI Manisha,



just create a field in back end and update that field from service portal and add the condition in business rule





Thanks


Chandu Telu


View solution in original post

3 REPLIES 3

Chandu Telu
Tera Guru

HI Manisha,



just create a field in back end and update that field from service portal and add the condition in business rule





Thanks


Chandu Telu


saprem_d
Giga Guru

Hi,



Utilize GlideURI to get the /sp in the URL and then add it in the condition



https://developer.servicenow.com/app.do#!/api_doc?v=helsinki&type=server&scoped=true&to=class__scope...


Hi Saprem,



That link isn't working. Could you give me an example. I need this exact thing for a requirement.