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

Hi @Community Alums 

You want to update request or requested item post submission of the catalog?

In either of the cases why do you want to create a BR, it can very easily be done in the respective workflow or flow.

Best Regards
Aman Kumar

Community Alums
Not applicable

Hi @Aman Kumar S 

we tried to update the request short description through flow.

in some cases its working but in other cases its not working may be due to execution time gap or something.

so wanted to try with the BR. Please find below observations. 

chanti1_0-1707712831408.png

Like the above snap we need. For sometime its working fine. 

chanti1_1-1707713158892.png

this is the catalog short description which is not updating correctly through the flow. 

 

Need suggestions to achieve it. 

 

So there is a counter-intuitive logic here, sometimes the request is created later than the requested item and the relationship between them is established behind the scenes, the difference is so small its different to spot that. You can rather make the changes on the RITM level than the request level.

Best Regards
Aman Kumar

Aman Kumar S
Kilo Patron

Hi @Community Alums 

You need to create an Before - Insert Business rule on the Requested item(sc_req_item) table, with the Condition Item - is - <Your catalog item name>

In the script section, you can simply write down below code:

current.short_description = current.short_description + "Your static text";

 

 

Best Regards
Aman Kumar

Community Alums
Not applicable

Hi @Aman Kumar S 

 

Thanks for the prompt response. 

 

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

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

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

so that once the request is created in the mail short description it will populate the short description of teh request.  

 

Any suggestions to achieve this.