function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter2mPeter2m 

Send E-mail

Hello !

 

I want to send email to users, WF rule on (statusInProd__c from external system,value  Planned, revise, ok ) on opportunitylineitem.

 

I have 9 diffrent emails deppending on status and produkt.

 

I was thinking of email templates with apex code.  I dont have much knowlege with SalesForce, so please help me, what is the best way to go, if you want some kind of error handling?

 

Best regards

Peter   

cloudcodercloudcoder

I would start with individual workflow rules which can send your required email template. This approach will give you a 'no-coding' approach which is always good for long term maintainability. If you grow beyond this approach you can create emails from Apex, but it does require a different level of skill.