want to update the request short description before

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 07:26 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 08:25 PM
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.
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 08:47 PM
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.
Like the above snap we need. For sometime its working fine.
this is the catalog short description which is not updating correctly through the flow.
Need suggestions to achieve it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 09:04 PM
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.
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 08:18 PM
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";
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 08:26 PM
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.