notification email using attributes
one of the employee attributes is "inform", it is a multi value attribute and contains a set of email addresses separated by comma like this "user1@xyz.com;user2@xyz.com;user3@xyz.com", when the employee change his display name, a notification email should be sent to these addresses. how to do this in workflow?
November 22nd, 2010 2:28pm

I presume you don't want an approval step, only a notification ... so here's how. Create a new email template - copy an existing "out of the box" email (one which details the details of the change in the RequestParameter collection, such as "Default pending approval email template") and save this as type "Notification" Create a new workflow "Notify changes in user DisplayName" with a single notification activity, and set the recipients to [//Target/inform], and select the email template you created in step 1. Create a new MPR as follows: Name = Notifications are sent whenever a user changes their DisplayName Type = Request Requestors = (Relative to Resource) ResourceID Operation = Modify a single-valued attribute Target Resource Definition Before Request = All People Target Resource Definition After Request = All People Resource Attributes = (Select specific attributes) Display Name Action Workflows = Notify changes in user DisplayName That should do it I think.Bob Bradley, www.unifysolutions.net (FIMBob?)
Free Windows Admin Tool Kit Click here and download it now
November 28th, 2010 6:38pm

when you choose the notification workflow, and choose [//Target/inform] as recipients, the workflow will give an error. anyhelp
November 30th, 2010 3:40pm

Ah yes ... what the activity is looking for is actually a multi-value reference attribute (of /Person), not a multivalue string (of emails). Can you set this up instead and give it a go ... then if it works the way you want, perhaps use the sync engine to populate it (or a custom activity)? The only other option that I can think of here is to preceed the notification activity with another custom activity which resolves each of the emails to unique FIM /Person IDs and stores them in WorkflowData ... which you should then be able to use in your notification instead. However, I would be looking to change your "inform" attribute to a multi-value reference type myself ...Bob Bradley, www.unifysolutions.net (FIMBob?)
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2010 5:38pm

Thank you, but the inform attribute is filled with email addresses not persons IDs, thus i can't change it, can I?
December 1st, 2010 12:50am

Depends on where these are sourced from ... if external to FIM and loaded via the sync engine, just clear out the values, delete the binding and attribute, then recreate as a ref ... then use an advanced rule extension (I suspect) to resolve the (unique) email to a reference type on the inbound flow to the MV from your authoritative source.Bob Bradley, www.unifysolutions.net (FIMBob?)
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2010 12:54am

thank you, I know that, I was asking for a more strightway, like could the fim resolve the user id based on his email address directly?
December 1st, 2010 12:57am

Sorry :) ... yes, but originally I'm only thinking only with a custom activity like the one I described above (writing a multivalue reference attribute to WorkflowData then using that). Now I'm thinking about what you can do post update 1 with the enhanced resolving of attributes ... but I think this only applies in the body of the email template itself ... so the answer is still no different I'm afraid. Someone suggest otherwise?Bob Bradley, www.unifysolutions.net (FIMBob?)
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2010 1:04am

crazy idea: try to separate email addresses with comma, not semicolon. ps. but what would you do if user's email will be changed or user account will be deleted? will go through all users and correct 'inform' attribute manually? its better use references for 'inform'
December 1st, 2010 3:16am

the changes will come from HR and updates the inform field. if I seprate the emails addresses with comma, what next?
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2010 3:39am

next, use NotificationActivity and //Target/inform although docs says that 'TO' property must 'Contains a list of users, sets or lookup parameters (see XPath Filter Language) that will be resolved at runtime. This API is for FIM internal use and is currently not supported.' try it anyway.
December 1st, 2010 3:45am

I test it it does not work any other solution?
Free Windows Admin Tool Kit Click here and download it now
December 9th, 2010 5:08am

yes, use references in inform field.
December 9th, 2010 5:16am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics