To create a call to action which opens up an email and passes in an email template then use the following snippets. The email template can define the to party on the email, content etc. For more information on email templates go to Preparing a New Email Template
var clientCCTVReqC2A = actions.sharedo.BuildActionPlanItem()
.WithDescription("Email: Client request for dashcam footage")
.AddCheckbox()
.WithCallToAction(
actions.sharedo.BuildCallToAction()
.WithDisplay("Email", "fa-envelope-o")
.WithCommandForSharedo
(
"sharedo-open-or-create-task",
{
sharedoType: "task-activity-send-email",
title: "Dashcam Footage Request",
dueOffset: "+1h",
email:
{
templateSystemName: "ulr-091-client-request-for-dashcam-footage",
}
},
ctx.sharedoId
)
.Build()
)
.Build();