Email using template
- Create Solution, with email template
- Export Solution to local machine
- Open Customization.xml file.
- Look for email template
- In Email template XML, check presentationxml tag.
Here I am getting account id and updating in custom attribute. We can do this only if existing record is opened.
If want to populate this custom Account GUID attribute on save of account record, then need to create custom plugin and register on Post-Save method. Make sure.. this plugin is not going into Loop by adding some condition like if new_accountguid is null then only execute & update account.
4. Now open or create email template for account and add this custom attribute in email template
5. Now use this email template for Account..