I have an OU ADSynced to Office 365
When I create Shared Mailboxes I basically create the user account sync it to 365 Assign it a license and and set the CustomAttributeBoolean1 to true.
I then have a scheduled task that checks for the CustomAttributeBoolean1 and then runs the scheduled task with the below actions.
What I find is the task itself does work providing the mailbox has already been created. In otherwords if it runs whilst the mailbox is creating it will fail on the convert which is expected.
The below shows that the convert operation fails, however it still continues on with the rest of the actions. I know there must be somethign cunning to fix this, but I just cant seem to figure it out. I was thinking that there may be a way to only process the below actions if the previous one returned an Operation status of "Completed"