Automating Distribution List (DL)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 09:26 AM
Hello All, We have an requirement to automate DL tasks such as creating a DL, updating a DL (add or remove users in a DL) and delete a DL. Can someone please share some inputs and the way to achieve this. I have enabled Orchestration plugin for this. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2015 07:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2015 09:32 PM
It looks like you missed a $ in the variable that error-ed. It should be:
Add-ADGroupMember "${workflow.scratchpad.dlName}" "${workflow.scratchpad.users}"
If you look at the ECC Queue input for this activity you can see the exact script (with variables resolved properly.. or not) that will run on the mid server in the payload XML. It helps a lot when troubleshooting these types of issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2015 06:19 AM
Thanks Robert for pointing that. I wasnt able to do anything for the last couple of days. I changed it now and it works like a charm. I have a run script activity to update the local record in ServiceNow. There's a table called u_distrubution_group and Im trying to update this whenever an user is added or removed. Everytime the request changes or updates in AD, not in the local table. Any idea why this could be failing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 05:38 PM
Hi Catch, what kind of failure are you getting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2015 11:15 AM
Hello Catch,
Were you able to do the Automation? I have the same requirement to automate the creation of the DL and its members. Would you be able to provide some snippet of the code? I see you have the PowerShell Activity Workflow. Where do you set the login to the Exchange?