Business Rule - Updating a Current Field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 12:03 PM
I'm trying to update a current field and no matter what I try it doesn't work and the field is left blank.
This BR fires on the sc_task table and the u_orch_name and u_orch_output_parms are both there from the task table. If I do a gs.log on current.u_orch_name then I see the value just fine. However, when I try to update the u_orch_output_parms field to 'TESTER' it doesn't work. The field is a text field up to 1k chars. I tried using a glidescript to hit the task table and update the field there and still no go. Any idea why this isn't working?
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 12:14 PM
If its an 'after' business rule then you need to add current.update(), no need to return
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 12:36 PM
Thanks! I had to add the return or the script continues to fire.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 12:40 PM
You have posted this as a post and not question , hence the best you can do on this is to mark helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 01:13 PM
Hey ANurag - how do we know if this is a post or question ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 01:50 PM