Views:

Description

Create an email from a template. Returns the guid of the new email

Signature

CreateEmailFromTemplate('templateid', 'recordid', 'recordentityname', 'setattribute_on_email', 'setattribute_on_email')

Example

CreateEmailFromTemplate('220dd379c-ee2f-11db-8314-0800200c9a5', '220dd379c-ee2f-11db-8314-0800200c9a5', 'quote', SetAttributePartyList('from', 'systemuser', WhoAmI(), SetAttributePartyList('to', 'systemuser', '220dd379c-ee2f-11db-8314-0800200c9a5'))

Parameters

NameTypeDescriptionRequired
templateidxxxxxxxxxxxx
recordidxxxxxxxxxxxx
recordentitynamexxxxxxxxxxxx
setattribute_on_emailxxxxxxxxxxxx
setattribute_on_emailxxxxxxxxxxxx

Notes: