itsm

RoshB
Tera Contributor

Requested Item ${sysapproval} -${wf_activity}- approved   

this wf-activity is only working for workflow item notification but for flow its showing empty is their any way we can manage for both workflow and flow notification without creating separate for each 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@RoshB 

is that a notification?

screenshots please

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@RoshB 

is that a notification?

screenshots please

Here is the email templet body i need something so it will show both approvals part for now its only displaying for workflow 

@RoshB 

if you are using flow then that wf_activity won't come

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Tanushree Maiti
Tera Patron

Hi @RoshB 

 

This behavior is expected.

${wf_activity} is a Workflow context variable that is populated by the legacy Workflow Editor approval activities.

When the approval is generated through Flow Designer, there is no workflow activity context, so ${wf_activity} resolves to blank/empty

 

In Flow Designer: Approvals are created by Flow Designer actions (such as Ask for Approval)

Create a Flow Variable (like Approval_Type) under flow.

  1. Set value:
    • "Manager Approval"
    • "Finance Approval"
    • "CAB Approval"
  2. Include that value in the email subject/body.

e.g

 

Requested Item ${number} - ${Approval_Type} - approved