locked
How to get request approver's display name for an email template RRS feed

  • Question

  • So we are using default Owner approval workflow. We created a UpdateResource step before the Ask approval from step to get approver's displayname for Ask approval notificates.

    In the UpdateResoure step we used simple [//Approvers/DisplayName] -> [//WorkflowData/ADN] and then put the [//WorkflowData/ADN] in to the email template. But what we get is only a "empty value" or notification not sent depends on do we locate the UpdateResource before or after Ask approval step.

    Wednesday, May 4, 2016 9:49 AM

All replies

  • The //Approver lookup can only be used after the request has been approved. Check the Approvers wiki. You won't know who the approver is before hand if there are multiple approvers. If you know there is a single approver configured, you can lookup the details via //Target lookup. e.g. //Target/Owner/DisplayName. If their are multiple approvers configured, this lookup will return display name of all Owners which you can concatenate using ConcatenateMultivaluedString function and use that value as the salutation in the email template (ugly, but that's the best you can have)
    Wednesday, May 4, 2016 11:18 AM