want to update the request short description before

Community Alums
Not applicable

Hi All, 

 

Having a requirement that need to update the request short description before triggering the email to the requestor. why because here once the request is created it will trigger the email to the requestor with the request short description. 

 

we want to update the short description  of the request with the static additional info. 

we want to try with the before business rule. 

need suggestions to achieve it. 

 

Thanks. 

10 REPLIES 10

RAMANA MURTHY G
Mega Sage
Mega Sage

Hello @Community Alums,

instead of Before Business rule, u can try with Flow Designer, It is better to use flow designer for the catalog items.

 

If you still want to update this with before business rule, Please look at below screen shots

Screenshot_20240212-091728 (1).pngScreenshot_20240212-091911.png

You can select your catalog item at the filter condition section in When to Run tab. Then this business rule runs only for that catalog item only.

 

 

Please mark my answer helpful & correct, if it helps you

Thank you

 

 

Please mark my answer helpful  & correct if it helps you
Thank you

G Ramana Murthy
ServiceNow Developer

Community Alums
Not applicable

Hi @RAMANA MURTHY G 

 

Thanks for the prompt response. 

 

Tried to update the request short description through flow but it will not work. 

we are trying to insert the new record in the core_company table through one catalog form. 

so one the catalog form is submitted we need to update the short description of the request

Before creating a record we need to update the request short description like 

New Supplier - 'and the name which  are giving in the catalog form'. 

 

 

Any suggestions. 

Amit Pandey
Kilo Sage

Hi @Community Alums 

 

You can create before/insert business rule and in the script section, you can use the following code-

 

var newShortDesc = current.short_description + ' - Additional Info'; // Adjust the additional info as needed
        current.short_description = newShortDesc;

Community Alums
Not applicable

Hi @Amit Pandey 

 

Thanks for your prompt response. 

 

We can use the before/insert business rule. but here the requirement is. 

 

we are trying to insert the new record in the core_company table through one catalog form. 

so one the catalog form is submitted we need to update the short description of the request with the Naming like

New Supplier - 'and the name which  are giving in the catalog form'. 

 

Need suggestions to achieve this.