Business Rule Not running during data import
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2017 01:56 PM
Trying to update a field that a created called supervisor with the full name from the user table . When I manually update the record it works fine but when I run the data source job the business rule does not run and I do have the Run Business Rule set to yes on the Transform Map.
Script
var inc = new GlideRecord('sys_user');
- inc.addQuery('employee_number',current.u_supervisor_id);
- inc.query();
if(inc.next()){
current.u_supervisor = inc.name;
inc.update();
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2020 08:07 PM
Hi John,
Please go though below link, it will help you to pull full name from User table.
Please mark it as helpful and correct , if applicable.
Thanks and Regards,
Ishita Shrivastava.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2020 10:25 PM
Hi
Maybe your BR IS run in fact, but:
Maybe your query does not find any records. This may be caused be some extra characters (like additional spaces) in your "current.u_superisior_id" field.
Please make sure, that your imported field will match the "employee_number".
Let me know, if that solves your issue and mark my answer as correct/helpful, please.
BR
Dirk