Populate Short Description with Form Variable Values in requested item record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 06:55 AM
Hi,
I've set up a catalog item named 'change site' that includes fields like 'version,' 'unit,' and 'system.'
Additionally, I've created a business rule that, upon saving the record, should populate the 'short_description' field of the requested item with a string composed of the chosen values in the mentioned fields - 'chosen version / chosen unit / chosen system/ request name', but it doesnt work.
this is the business rule:
However, I'm encountering some challenges with this setup. Could someone please provide guidance or suggestions?
Thanks,
Sahar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 07:24 AM
Also check what are the conditions on your BR , is the catalog item specified on your BR when to run conditions ? I think current.variables.version should also work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 07:34 AM
yes it is specified in the when to run condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 08:37 AM
Hi @Sahar_Kaizer ,
Please try what @SunilKumar_P has suggested that should work. Please let me know if that does not will provide u another script.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 07:07 AM
Hi @Sahar_Kaizer ,
If you are trying to populate values form request form submitted by end user , then you can not use current.<variables> , once the record is saved the variable values are stored in the table "sc_item_option_mtom" you have to query this table to fetch the values.
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 07:11 AM
can you please help me modify the script?