- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:06 AM
I am using a after business rule to set one field value code is . Field type is Choice and name is u_use_method. I need to set this field to local based on few conditions. Am trying to use current.setValue('u_use_method', local), where local is the backend value of the choice field. But this is not working. Any suggestions please
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:23 AM
Hi @Roshini ,
It looks like you're running this on when = after, which you can't use to set values.
You should make the BR before and then as already suggested by other colleague run the setvalue statement.
Please mark helpful/correct if my response helped you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:10 AM - edited 02-06-2024 03:27 AM
Hi @Roshini please use before update BR and the code below.
current.setValue('u_use_method', 'local'); // you missed ''(codes)
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:22 AM - edited 02-06-2024 03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:23 AM
Hi @Roshini ,
It looks like you're running this on when = after, which you can't use to set values.
You should make the BR before and then as already suggested by other colleague run the setvalue statement.
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:25 AM
Hello @Roshini ,
Please try below code
current.setValue('u_use_method', 'local');
current.setWorkflow(false)
current.update();