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
rvsrrvsr 

Need Help in WF Email alert.

Hello everyone ,
We installed the salesforce License Management Org and need to send a welcome to the subscriber who Installed our App from AppExachange .

To do this we created an custom Email field in the license object which will also having look up with lead record.
No I need the update this custom field with Lead email Id on creation of the License record.

When i use After insert trigger or field update on license object , it showing null pointer exception error because of existing trigger available in the managed package of LMA .

We are succeeded using before trigger on License object. But in LMA best practices its mentioned as not to use before create trigger on License or Lead object .

Can any one suggest me any other ways to update this custom Email fied with Lead Email or how to send an Email Alert on creation of record.



Thanks in Advance.
NehalNehal (Salesforce Developers) 
Hi,

Please refer links below that will help you to send an Email Alert on creation of record:

1.https://developer.salesforce.com/forums/ForumsMain?id=906F00000008oxOIAQ
2.http://stackoverflow.com/questions/2649588/how-can-i-get-the-name-of-the-lead-owner-in-a-lead-custom-formula-field
3.http://stackoverflow.com/questions/7714157/update-existing-salesforce-lead-field-with-httpwebrequest
4.https://developer.salesforce.com/forums/ForumsMain?id=906F00000008qZOIAY
5.https://success.salesforce.com/answers?id=90630000000hNTsAAM
6.http://salesforce.stackexchange.com/questions/3791/can-a-workflow-rule-be-created-against-a-user-record-i-e-send-an-email-alert-t

I hope this helps.
Hargobind_SinghHargobind_Singh
You should try creating Lead Auto Response, for Leads coming from AppExchange. You can identify the leads from Source Field, and create an auto-response email for appexchange installs only. 

Here is information on lead source fields: https://appexchange.salesforce.com/resource/1352496302000/help/Content/appexchange_faq_leadsource.htm