How to get Work order task form fields to cross into and autopopulate Work order form fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 09:02 AM
Is this possible? I would like to change the value, Input a value or select a value into a field in a work order task. And then have that auto populate something in the Work Order that the task is for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 09:55 AM
You can create an after Update Business Rule on the wm_task table with a script that does a GlideRecord on the wm_order table to look up the work_order referenced record, then update the field value(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 10:33 AM
Would it also have to have a script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 11:13 AM
A Business Rule does not require a Script Include, since both run on the server, but a Business Rule can call a Script Include - if you already have a function that is doing the same thing, there's no need to replicate the code.