How to skip updating a field value when updating a record by using Servicegraph connector for JAMF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2024 10:23 PM
Hi We have a Jamf integration by using the Service graph connector for JAMF. In Jamf from diff data sources and different endpoints we are updating a computer record, one endpoint when create/update a record in cmdb table the model name updating a simple name, another endpoint update the model name with exact name. We need both integrations.
But if the 1st endpoint will do the insert operation we need the model id insertion, but when update operation only I want to skip the model id updating.
I am unable to find the script functions for the robust transform map, so I am unable to implement this, can any one please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2024 12:55 AM
Hi @somasekharK ,
Try to evaluate the Reconciliation rules for the update the Model ID from one source only, It will help to resolve your issue, no need to write the custom scripts for that.
Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
Thank You
AJ - TechTrek with AJ
Linkedin:- https://www.linkedin.com/in/ajay-kumar-66a91385/
YouTube:- https://www.youtube.com/@learnitomwithaj
ServiceNow Community Rising Star 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2024 11:16 AM
Hi Ajay,
In my case, we are using JAMF as a data source. There are two different paths in JAMF, and we are getting basic data form one path and full details form another path. When an asset purchased we get the basic details and when it assigned to someone we get the full details in different path. In this case the source is same, so we are unable to do it form reconciliation rule. We are using Service graph connector for JAMF plugin to get he data form JAMF, and oob ServiceNow creates a robust transform engine. I am using two different data sources to get the basic details and another source to get the full details. In the transformer definition I saw two scripting places "Execute after script, Execute before script", form these scripting options can we able to stop the update operation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 12:59 AM
Did you find a solution? I am trying to do something similar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 01:14 AM
Yes,
Form the Data source 'Transformer Definition', by using the field 'Before Script' we can write script like 'input[i].payload.items[0].values.field_name= "";' //To set the value to empty
By default you can able to see the example script form the 'Before Script' field.