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

Name Type Description Required
templateid xxxx xxxx xxxx
recordid xxxx xxxx xxxx
recordentityname xxxx xxxx xxxx
setattribute_on_email xxxx xxxx xxxx
setattribute_on_email xxxx xxxx xxxx