I tried that but its not working. Have you tried it? As you said I duplicated the workflow. I changed the input to AD-Active Directory. I had to change the input type to tree to be able to select the active directory domain.
Once I did and ran workflow, selected the Active Directory domain and input the new name. It errors - "TypeError: Cannot find function createOrganizationalUnit in object notfound."
I believe this is because the underlying action - CreateOrganizationalUnit - expects AD:OrganizationalUnit as input type.
So I duplicated the action and called it - CreateOrganizationalUnitAtRoot - and changed input type to AD:ActiveDirectory (also tried AD:Group) . I get the same error in both cases - TypeError: Cannot find function createOrganizationalUnit in object notfound.
Any ideas?