Is there a way update the template in an email alert based on user input. I have a object called send email which has a pick list field with list of email template names. I am using a single email alert to send out emails using process builder.
I am looking for a way to update the template on the email alert based on what user select in the picklist value. If the user select template_01 in picklist field and click save - the template in email alert should be replaced with the name of the email template that user selected. Is this possible? or is there any workaround for this? Can we use apex to manipulate email alerts?
The purpose of doing this is when a customer wants to add a new email template , they just go into the system and create one. The email template is added to the picklist value. The user just selects the email template to be sent from the picklist value and that's it, rest is taking care by the system to send that particular template which user select. Customer does not want to create new email alert or add a new email alert in process builder.