setting value using dotwalking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 06:19 AM
Hi Team,
I have written a before BR script to set boolean value but its not setting it,but on checking the logs , it does show the value is set however when we open the record, we do not see the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 06:24 AM
Hi @Community Alums
Try to set the value with the quotation as:
exp.order.u_expedite = 'true';
Thanks!
Mark it as correct and helpful if it works 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 06:29 AM
hi,
hi ,
Seems exp.update(); is missing
Regards,
Luxo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 06:45 AM
Hi @Community Alums ,
Can u try below code:
var exp = new GlideRecord('sn_ind_tmt_orm_order_line_item');
exp.addQuery('sys_id', current.order_line_item.toString());
exp.query();
if (exp.next()) {
gs.info('Got the Exp:'+exp.order.u_expedite);
exp.order.u_expedite = 'true';
gs.info('Expedite is:'+exp.order.u_expedite);
exp.setWorkflow(false);
exp.update();
exp.setWorkflow(true);
}
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 07:32 AM
Not working.