Want to update participant title dynamically | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Tanika02
Level 7
July 12, 2023

Hello @adivj95  - 

 

You may do so (as drafted below), but it might have certain implications which you have to additionally handle/consider : 

  • With the latest upgrades/versioning, you might have to revisit the implementation done to handle the above use-case.
  • With the customization required to modify the title of the inbox notification for the Workflow participant step, remember all notification to the inbox shall get affected unless explicitly handled.

If you are looking for a sample script/approach to handle this use-case : 

  • You can create a client-side JavaScript file, for example, customTitle.js, and place it in your AEM project's client-side code folder. 

 

// Wait for the DOM to be ready document.addEventListener("DOMContentLoaded", function() { // Write the code to get the page, as you have not mentioned which page path you want to update. var pagePath = <script>; // Update the document title with the page path document.title = "Page Path: " + pagePath; }); ​

 

  • Include it on the inbox.html page (Make sure you overlay it at /apps, before updating). You can do this by adding the following line inside the <head> section of the inbox.html file:

 

<script src="/path/to/your/customTitle.js"></script>

 

 

Thanks,

Tanika 🙂

adivj95
adivj95Author
Level 2
July 12, 2023

for inbox page it will work but when i click on notification icon i will see the title without page path

aanchal-sikka
Community Advisor
Community Advisor
July 12, 2023

Hello @adivj95 

 

It might be cleaner if you use Description section to add payload Information. The title will help easily identify type of task, while description will provide path to asset

 

 

The API details are available here https://github.com/arunpatidar02/aem63app-repo/blob/master/java/SimpleCreateTaskServlet.java

 

Aanchal Sikka
adivj95
adivj95Author
Level 2
July 12, 2023

@aanchal-sikka the code in the given github link can be used for creating custom notification, but i want to update the default workflow participant notification, which we get whenever we user participant step in workflow , is there any utility to update that ?

 

New Member
June 18, 2025

Hi @adivj95 I was planning to update the "Dynamic Participant" notification description. So just wanted to check if you found any solution for this?