Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Script parser step not retrieving value

Hafsa1
Mega Sage

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