Thursday, October 5, 2023

Amend Notification Subject Lines

One of my clients had a requirement to change the notification subject line 

Ex: For 'Annual Leave' the original subject line is
'Approval of Annual Leave Request for XXX YYY from 2022-07-10 to 2022-09-10'

They want this to be changed as 'Annual Leave is Submitted Successfully for XXX YYY'

Lets see how we can achieve this

You can do this from BPM Task Configuration

Prerequisite: You should have  'Application Implementation Consultant' role 

Now go to BPM Worklist, there are two ways to go there 

1> Click on the bell icon on the home page and click on 'More Details'
        OR
2> Setup and Maintenance > Manage Task Configurations for Human Capital Management

Now go to 'Administration' > Task Configuration

Since this is Absence Approval so search for AbsencesApprovalTask


Now click on Edit pencil and then on Globe icon at the end of the Title





Now, keep the language English and give any key as 'DEMO_ABSENCE_TITLE' and in the expression provide the title you want Ex:  {0} is submitted successfully for {1}
{0} is the Absence Type and {1} is the person Name


Click on the 'Arguments' pencil icon and provide arguments for token {0} and {1}




Click on the expression builder icon
Now expand the Variables for task:payload > AbsenceApprovalrequest > AbsenceType 
and Insert into Expression 

It should be /task:task/task:payload/ns0:AbsencesApprovalsRequest/ns0:AbsenceType
                 


Same for the token {1}
task:payload > AbsenceApprovalrequest > PersonName
and Insert into Expression 

It should be /task:task/task:payload/ns0:AbsencesApprovalsRequest/ns0:PersonName

Click on OK

Click on OK



And then Save, Commit and OK



And job done! :)

No comments:

Post a Comment