Service Graph Connector for Microsoft Intune - Add a custom field
In this example, we will be adding a field from Intune device pull called 'chassisType' and map it to 'Chassis type'(chassis_type) in the 'cmdb_ci_handheld_computing' class in CMDB.
Changes to the data stream action:
1. Open up Flow Designer2. Find out which data stream action is being called in the SG-Intune Devices data source. In this case, it will be 'mobiledevices'3. Open up the 'mobiledevices' action4. Click on 'Script Parser step' section 5. Add the following line to the bottom of the script: outputs.targetObject.chassisType = record.chassisType;6. Click on 'Outputs' section7. Click on 'Edit Outputs' for editing 8. Click on the arrow on the left to expand the targetObject 9. Click on the '+' sign on the top right of the targetObject to create another item under there 9. Add the following record to the object: Label: chassisType Name: chassisType Type: String 10. Save the action 11. Run a 'Test' to test the changes 12. Click on 'Your test has finished running. View the action execution details' to see the output 13. Click on 'mobiledevices Data Stream' to see the details 14. Click on the 'Outputitems' under the Output data 15. You must see the 'chassisType' in the payload with a value
16. If there are no issues and the data got pulled in, click 'Publish' to publish the action
https://www.servicenow.com/community/cmdb-blog/service-graph-connector-for-microsoft-intune-add-a-custom-field/ba-p/2274921
Michael Hansen