I'm working on a rule in the WorkOrder driver to delay and send emails.
The rule, without the delay and in an HR driver, works fine and looks
like this:

<description>Send GRAD welcome email from Admissions to student on
<if-operation mode="case" op="equal">add</if-operation>
<if-src-attr mode="nocase" name="Group Membership"
<do-send-email-from-template notification-dn="Security\Default
Notification Collection" template-dn="Security\Default Notification
Collection\GRAD welcome email">
<arg-string name="to">
<token-src-attr name="Internet EMail Address"/>
<arg-string name="FirstName">
<token-attr name="Given Name"/>
<arg-string name="LastName">
<token-attr name="Surname"/>
<arg-string name="Username">
<token-attr name="CN"/>

but, as I understand it, I need to move this rule to WorkOrder driver
pub-cp in order to achieve postponing the send.

The problem I'm running into is that I need to use the same Group
Membership evaluation logic and retrieve other values from the vault
user object, such as the Internet EMail Address and CN attributes to
form the email and that aren't in the WorkOrder object (and I don't
think I want to store them in the WO object, either). I'm thinking the
answer lies somewhere along the lines of referencing the vault object
from the DirXML-nwoContent value, e.g., vault\users\username and
extracting, but I'm not sure what exactly I would use.

I hope this makes sense and please let me know if I need to clarify
anything. Any advise would be greatly appreciated.

Thanks a lot!


bscully's Profile: https://forums.netiq.com/member.php?userid=355
View this thread: https://forums.netiq.com/showthread.php?t=2893