FIM Portal Email Templates

I have a requirement to use a multi-valued attribute in the body of an email template. Currently if I just inject the values from the attribute using the default method I get a jumbled mess of data.

What I would like to do is format the data from the mult-valued attribute to make it more readable by adding a CR/LF between each value in the list e.g.

Table Heading1:    Mult-valued attribute, text string1

                           Mult-valued attribute, text string2

                           Mult-valued attribute, text string3

                           ...

So far I cannot see how this can be achieved as any substitutions I make to try and add CR/LF or even make any change to the data seems to be ignored.

 

Is there any way to achieve this?

 

Thanks

CV

 

 

August 10th, 2011 10:17am

I agree that we need more flexibility in email templates than straight token substitutions that we can do now, which I believe are effectively limited to single value attributes (as you have discovered).

For now I would approach your requirement by writing a custom workflow activity to iterate through your multi-value attribute collection and construct a composite string value which you can then store in say [//WorkflowData/MyEmailToken] and directly reference in your email template.

Free Windows Admin Tool Kit Click here and download it now
August 10th, 2011 4:39pm


Thanks Bob

That was the thinking I was coming around to as well. I agree it is pretty inflexible not to be able to just formulate an email in whatever format we desire and is a lot of grief to do it otherwise.

I will have a go at the custom workflows and see where I get to.

Thanks

CV

 

 

 

August 11th, 2011 1:55pm

Hello Bob,

I know this post is old but I think this issue is still relevant.

With the solution that you suggest, do you know a way to print each value in a separate line in the email notification?

I tried to insert the following strings:

  • value1<br/>value2
  • value1&lt;br/&gt;value2
  • value1&#139;br/&#155;value2

Regards,

Serge

Free Windows Admin Tool Kit Click here and download it now
January 17th, 2014 10:17am

No I don't sorry, Serge - but I can see what you were thinking.  Perhaps you could try appending a CRLF (ASC10+ASC13) to each data item itself?  I myself have just put up with the limitation - perhaps your email template could have an HTML <span> or <iframe> or suchlike to wrap the data element as a visual work-around?
January 19th, 2014 6:56pm

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

Other recent topics Other recent topics