- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2022 10:03 PM
Hello Developers,
I have a client requirement where the category and subcategory on RITM generated through the order guide is auto-populated from the category choice based on the catalog item ordered.
I have tried to achieve this through after BR with Insert operation with below script but the fields are not getting map.In the below script, I have added the sys_ids of the catalog item and have written this on requested item table.
Can anyone help me to know the error and how to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2022 11:52 PM
Thank you Harsh!
The solution provided by you works fine, however, we also focus to follow recommended practice only to deliver the solution and its recommended to avoid the current.update() within any business rule as its use can cause performance issues.
However, I managed to achieve the requirement using before insert BR with the same script and it worked for me.
I would appreciate the time taken by you to help me providing the solution.
Thanks,
Diksha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2022 10:06 PM
Hi Have you checked "cascade variables" field on Order Guide to true? This will pass variable values to your catalog item variables.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2022 11:14 PM
yes its set to true!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2022 11:24 PM
Hi you can pass the value like this
current.setValue('category','network'); // make sure you have correct choice value
current.update(); // after BR must have current.update to update the choice value which is missing in your code
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2022 11:52 PM
Thank you Harsh!
The solution provided by you works fine, however, we also focus to follow recommended practice only to deliver the solution and its recommended to avoid the current.update() within any business rule as its use can cause performance issues.
However, I managed to achieve the requirement using before insert BR with the same script and it worked for me.
I would appreciate the time taken by you to help me providing the solution.
Thanks,
Diksha