How do I modify the approval mail 'approval' link to include text in the body of the message it

selva kumar1
Tera Contributor

We are sending approval requests to our users, on the approval we include the typical information that is needed to approve/reject what is being requested.

When a request or a change is rejected we want to capture why it was rejected. When the approver rejects on the form we can force the addition of the comment but on an email we can't force users so I am looking for ways to capture this.

What I'd like to do is, when a user clicks on the 'reject' link on the email, to have a text in the body of the email that pops up that says: "Add rejection reason:".

I looked at the approval.inserted event and I see it fires the Approval request noficiation, on it I see:

Detailed Description:
${sysapproval.description}
${mailto:mailto.approval}
${mailto:mailto.rejection}

If I go to check the mailto.approval template I see (in the message part):
Approve

1 REPLY 1

Siddhesh Gawade
Mega Sage
Mega Sage

Hello @selva kumar1 ,

 

Regrettably, it is not feasible to display a popup directly within the email body. However, a viable workaround can be implemented through the following steps:

  1. Generate email scripts that include accept and reject buttons, directing users to a customized portal page upon clicking. On this portal page, users can input worknotes, allowing for the subsequent update of the approval status based on their response.

  2. To discern which button the user clicked within the email body, integrate parameters into the button portal link. By utilizing these parameters, you can identify the specific button clicked, as well as the associated approval. Subsequently, update the corresponding approval status after capturing the worknotes input.

For a clearer understanding, please refer to the email notification script provided below.

Add emoji in email notification and redirect to the survey on click 


Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.


Regards,

Siddhesh