How to find Process Definitions Associated Process Email Templates

Dear All,

We want to find out Process Email Templates used in each BPM, can you please suggest best way to find Process Definitions Associated Process Email Templates.

Thanks,

Shreya

Parents Reply Children
  • The pmse_bpm_event_definition will contain the information of the email template in the column evn_criteria as you can see here:

    https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.0/Architecture/SugarBPM/

    I am being able to return all the custom Processes and Email templates with the following query (triggered or not triggered)

    SELECT def.prj_id as ProcessDefinitionID, 
    def.evn_criteria as EmailTemplateID, 
    templ.name as EmailTemplateName,
    proj.name as ProcessName 
    FROM pmse_bpm_event_definition def 
    LEFT JOIN pmse_emails_templates templ
    ON def.evn_criteria = templ.id 
    LEFT JOIN pmse_project proj 
    ON def.prj_id = proj.id
    WHERE templ.name IS NOT NULL;



    Only the out-of-the-box processes are not being caught as the pmse_bpm_event_definition > prj_id does not find a match in the pmse_projects table. 

    Can you let me know if the results for you are the same? 


  • Hi Andre,

    Yes right, now above query is working to get all email templates, but if I export the result and if process name is column is  blank and if I try to open process definition using "ProcessDefinitionID" column then it gives error of "

    Data not available

    Page does not exist or you do not have permission to access this page.

    Please try again. If the error persists, please contact your Sugar Administrator.

    "

    even thought I have admin rights.

    Please suggest..

    Thanks,

    Shreya