Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Fetch Additional Fields from Source via Service Graph Connector for Intune Integration

DebjitGhosh31
Tera Contributor

Hi,

I am trying to fetch information from Intune to ServiceNow using Service Graph Connector and for that followed the guided setup. Now, as per the out-of-the-box solution, it is not fetching a few fields for e.g Last Scanned Date. How can I customize the setup so that I can fetch these fields from the source to the staging table and then map it to cmdb?

Please help.

 

Regards,

Debjit

1 ACCEPTED SOLUTION

Swapna Abburi
Mega Sage
Mega Sage

Hi @DebjitGhosh31 

You can update the flow action "Computers".

1. Add below line to the Script Parser step

outputs.targetObject.lastSyncDateTime = record.lastSyncDateTime;
2. Go to Outputs Step and click on Edit Outputs and add new field to the targetobject.
SwapnaAbburi_0-1675786093468.png

 

3. Save and Publish the flow
 

 

View solution in original post

4 REPLIES 4

Swapna Abburi
Mega Sage
Mega Sage

Hi @DebjitGhosh31 

You can update the flow action "Computers".

1. Add below line to the Script Parser step

outputs.targetObject.lastSyncDateTime = record.lastSyncDateTime;
2. Go to Outputs Step and click on Edit Outputs and add new field to the targetobject.
SwapnaAbburi_0-1675786093468.png

 

3. Save and Publish the flow
 

 

Hi @Swapna Abburi ,

Thank you very much.

It is EXACTLY what I am looking for.

 

Regards,

Debjit

Hi Swapna,

I have this query on populating 

Primary user from the device , could you please let me know how i can add them ? 
 
Sonu_0-1685650015286.png

 

Hello @Sonu ,
Did you got the answer I am looking this for Intune with servicenow