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.

'Invalid Object' Error when testing 'Update Object OU' Action - Microsoft AD Spoke v2

TristanSchmidt
Tera Contributor

Hi everyone,

 

I´m currently testing out the new Actions from Microsoft Ad Spoke v2 and have trouble with the format of my Computer Object. I´m using the 'Look up Computer' Action to get my Object and then copy it to test the 'Update Object OU' Action

 

Object returned by 'Look up Computer'

 

 

{
    "Computer": {
        "canonical_name": "Test,
        "description": "",
        "display_name": "",
        "distinguished_name": "test_computer,
        "dns_host_name": "Test.local",
        "object_guid": "38e087cf-ef00-4048-8423-74d038b77522",
        "operating_system": "Windows 10 Enterprise",
        "operating_system_version": "10.0 (17763)",
        "ou": "OU=CurrentOU",
        "samaccountname": "Test$"
    }
}

 

 

 

When testing the 'Update Object OU' i get this Error. Same when deleting all tabs from the object.

{
    "Action Status": {
        "code": 1,
        "message": "Error:  Invalid Object : {\n    \"Computer\": {\n        \"canonical_name\": \"TEST",\n        \"description\": \"\",\n        \"display_name\": \"\",\n        \"distinguished_name\": \"test_computer",\n        \"dns_host_name\": \"Test.local\",\n        \"object_guid\": \"38e087cf-ef00-4048-8423-74d038b77522\",\n        \"operating_system\": \"Windows 10 Enterprise\",\n        \"operating_system_version\": \"10.0 (17763)\",\n        \"ou\": \"OU=CurrentOU\",\n        \"samaccountname\": \"Test$\"\n    }\n} (Process Automation.51306ecadbbbbd10810a9f5cd39619a7; line 36)"
    }
}

 

What am I doing wrong? 

0 REPLIES 0