Call to action commands can of course be used to create emails.
Where there is the requirement to pass through the 'To' participant, this can easily be achieved by using the following snippet
Actions.sharedo.BuildCallToAction()
.WithDisp0lay(“Email”, “fa-edit”)
.WithCommandForSharedo
(
“sharedo-open-or-create-task”,
//instanceTag “there-can-only-be-one”,
Sharedotype: “task-activity-send-email”,
assignToHolderOfRole: null,
title: “Inform ATE Provider”,
dueOffset: “+1h”,
email:
{
TemplateSystemName: “email-top-tail”,
},
Parameters:
{
assignToOdsId: ctx.ownerId,
recipientId: null,
recipientLocationId: null,
dueDate: null
}
},
Ctx.sharedoId
)
.Build()