Yes cool, that is what I need. Do I need to write a custom workflow action plugin, or is this something I can put in the "Custom Code" field? If the later, what variables are available in the velocity context of this box?
[cid:bf983f25-be7b-4ec9-a335-67d0dae82768]
From:
dot...@googlegroups.com <
dot...@googlegroups.com> on behalf of
jonathan...@dotcms.com <
jonathan...@dotcms.com>
Sent: Saturday, March 13, 2021 12:49 AM
To: dotCMS User Group
Subject: [dotcms] Re: Workflow Emails Notify Author
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
________________________________
Hi
if the user you want, was an user saved on the workflow_task table in a previous step, you might want to query the workflow_task by
webasset = contentlet identifier
status = step id
language_id = the language
with that combination you may get the user from the previous step (such as looking on the history) and with the user id, you can ask for the email to the UserAPI
On Friday, March 12, 2021 at 1:46:56 PM UTC-6
nke...@gettysburg.edu wrote:
Hmm. It looks like "Notify Users" requires some input values.
Unfortunately I'm not sure how to programmatically get the person I need to send to.
[cid:0843aa7a-4f6d-43ff-af5d-1e245d58a154]
https://dotcms.com/docs/latest/workflow-sub-actions<
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fdotcms.com%2fdocs%2flatest%2fworkflow-sub-actions&c=E,1,r_mGniyE2hGWzAYrOn5gvnFYx4Ip9JLfHBXhfhpaKwArsCc7GuNi_kJdhL0tkYAW2WZNMcRGc-e3GV0wybiMcju52OViQSIEOqoYu-wr-JT_uiwem4yU&typo=1>
Nathan I. Keiter | Lead Network Applications Programmer | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone:
717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.gettysburg.edu&c=E,1,oQaWp-b93EyzDxvxyst77JM1iXIaV9k7XAqemWeKOqW-C87CRkyl5sMkFHwH2kk7s73NfoDQTP8bQdF-xyyutecmbXz1_2-y0HBv-CgUIMbcmg,,&typo=1><
https://www.gettysburg.edu/<
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.gettysburg.edu%2f&c=E,1,PktONtFAsGebhBar3j4TyHHWTZ2P1FeakmsNYhPea1Xk66YWyetIxYgMLIvsd1XIauvscqkia0aomGBHvE6ytL6gMSWCLarzgvNytjnq6QeRy8E71w,,&typo=1>>
________________________________
From: Nathan Keiter
Sent: Friday, March 12, 2021 2:23 PM
To:
dot...@googlegroups.com
Subject: Workflow Emails Notify Author
I was able to send an email to the role group when content was sent to the Review step. (Notify Assignee)
What I'd like to do next is send an email to the person who sent it for review once it is published out of the review step.
How can I do that? I've tried several things that didn't work.
For example if I choose "Notify user" it does nothing on the "Publish" button and completely breaks the "Save & Publish" button, leaving the content in a locked state. No errors in logs.
Nathan I. Keiter | Lead Network Applications Programmer | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone:
717.337.6993<tel:(717)%20337-6993>
https://www.gettysburg.edu<
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.gettysburg.edu&c=E,1,TrjZ0nRKGSSwQ-bWm6ma8bT43ivhjjhfMPNCKO4TRf0Dy5HNjXrMRN8GPDAZuTROZg1Lc2sgXqFmWhQQRgDFdCEZW5KWqPyIdG-c1IbYeNo,&typo=1><
https://www.gettysburg.edu/<
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.gettysburg.edu%2f&c=E,1,8mVuyh-9D3_-ahl9RMHMP3J3zraBh2ilBqDDC80K-GQ6ORbcZOlH9bCqcpEABK04kvXtKFAI3aqRV7STmPQUVXfROTYxAwNpQD1fp-fGxDtGVBqX&typo=1>>
--
http://dotcms.com<
https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fdotcms.com&c=E,1,RKzRg17xuZ-DSrPFCmL39ALgtjk4GIpUJNEDs-EwDzNA1I87h0O3LIUxLXmE_d9bfIbqqgJXSv4wIo5oMmIWRHJxnsAnYW9inMadHN6K6ve3iWYD9V9JuVdsEIdn&typo=1> - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dotcms+un...@googlegroups.com<mailto:
dotcms+un...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dotcms/910749a7-96a0-4d01-b346-60203d3de84dn%40googlegroups.com<
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgroups.google.com%2fd%2fmsgid%2fdotcms%2f910749a7-96a0-4d01-b346-60203d3de84dn%2540googlegroups.com%3futm_medium%3demail%26utm_source%3dfooter&c=E,1,TEf0vJc7Nt8y7CT84FVrH59xieBQfpfgnnOR4Nl3PEQIDWNCuTSYBK9rpylDOeERwmpEZiy1fYpq3SL3AqOflAu2sscKBXd1KE0MzugH3uuaHtdq&typo=1>.