Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi Experts,
I am looking for help on how to capture CQ workflow comment which is located on workitem on default email notification.
Gelöst! Gehe zu Lösung.
Zugriffe
Antworten
Likes gesamt
You can write a custom workflow step which will get the comments as in the code sample given in the forum thread I shared earlier. And then save the read comment on the payload as custom property. In the workflow model just include this step before any participant step in which you want to send email notifications. And then in the template you can read the comment by just fetching it by the name of custom property. Ex - ${payload.previousComment}
OR Instead of using default workflow notification you can create a custom workflow step of sending emails. For email code you can reuse the Adobe ACS email service - http://adobe-consulting-services.github.io/acs-aem-commons/features/email-api.html
Zugriffe
Antworten
Likes gesamt
You will have to write custom code to read comments. Check this link - https://forums.adobe.com/thread/1156064
Zugriffe
Antworten
Likes gesamt
Hi Kunal23,
Many thanks for your reply...I went thru on the link you sent...
It is seems Javascript and Java code, but since the email template /etc/workflow/notification/email/default/en.txt comes from this path.
So, is it still possible to captured the comment on this .../../.../en.txt file..
Zugriffe
Antworten
Likes gesamt
You can write a custom workflow step which will get the comments as in the code sample given in the forum thread I shared earlier. And then save the read comment on the payload as custom property. In the workflow model just include this step before any participant step in which you want to send email notifications. And then in the template you can read the comment by just fetching it by the name of custom property. Ex - ${payload.previousComment}
OR Instead of using default workflow notification you can create a custom workflow step of sending emails. For email code you can reuse the Adobe ACS email service - http://adobe-consulting-services.github.io/acs-aem-commons/features/email-api.html
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten