Script parser step not retrieving value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 02:07 PM
I'm using "successfactor spoke" scope in flow designer to get the data from successfactor. some fields are direct 1-1 mapping from SF. But for some fields, we need to get it from servicenow hr profile table from the SF input. But seems to be not working.
var userGR = new sn_hr_core.GlideRecord('sn_hr_core_profile');
userGR.addQuery('user.user_name', item.userIdNav.empInfo.personIdExternal);
userGR.query();
if (userGR.next()) {
var globalFunction = userGR.getValue('u_global_function');
outputs.targetObject.global_business_function = globalFunction;
0 REPLIES 0