Update AD Object - Object data with empty value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2018 12:54 AM
I am using the "Update AD Object" in a workflow but if the user sets a field to an empty value the workflow fails with:
The attribute syntax specified to the directory service is invalid.Stack Trace: at System.DirectoryServices.DirectoryEntry.CommitChanges()at CommitChanges(Object , Object[] )at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)
If there is data in the field the update works and propagates through to AD. The format of the Update AD Object is:
Is there a way for this to work if the value of "workflow.inputs.u_phone" is an empty string?
Thanks.
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2018 10:33 AM
Put an if statement before the update ad object block that checks to see if u_phone is empty. If it i skip the block, if not process the block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2018 10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 05:27 AM
Hi Peter,
If you want to update the AD user with empty data, please provide 'null' as the value while using the activity.
So it would be:
{"telephoneNumber":null}