ServiceNow Intune integration

Sanket Kutwal
Tera Expert

Hello all,

 

We are working on an MS Intune integration and are facing the issue below:

 

We have scheduled jobs that run every 11 hours to fetch the latest data from Intune. While the data is being inserted from the source table (i.e., staging table) into the target table (i.e., CMDB hardware asset table), we observed the following behavior:
When a record has a user assigned to the "assign to" field and Intune updates this field with a new user, the target table is correctly updated with the new value.

 

However, when the user is removed (i.e., the "assign to" field is emptied) on the Intune side, the "assign to" field in the target table is not cleared, and the old value remains.

 

This behavior occurs because ServiceNow's transform maps do not clear target fields by default when the source field is blank or null. By default, if a source field is blank or null, ServiceNow ignores it during transform map processing, which results in the old value persisting in the "assign to" field.

 

To resolve this issue, we tried using a conditional script in the transform map that explicitly checks for empty or null values and clears the "assign to" field in the target table when the corresponding source field is empty, but it did not work.

 

If anyone has encountered a similar issue or has insights into resolving this within the MS Intune integration, your guidance would be greatly appreciated. Thank you!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Sanket Kutwal 

you are on right track to clear the target value

It should be done using onBefore transform script

what debugging did you do? share screenshots of your script

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Pratiksha
Mega Sage
Mega Sage

We have done in past. Their are two ways you can do this :

 

 

For us it was when user leaves the org, with the leaver process we remove the assign to information via script. 

 

Second in ETL, if the assigned to value is empty then we have emptied the target field too. 

 

Share the script which you have written once.

 

Regards,

Pratiksha