我想在电子邮件中添加“添加到日历”。我的想法是将代码编写到 Javascript 以在 CloudPage 中生成 file.ICS 并将其与按钮链接。当电子邮件接收者点击按钮时,文件.ICS 将被下载。
我有一个从 Sales Cloud 触发的 Journey Builder。我有一个 CloudPage,我想从触发的记录中检索“日期字段”的信息。我完全不知道如何编写代码来检索 CloudPage 中的“日期字段”信息。下面是我的代码
%%[
VAR @sid, @jid, @reason, @lue, @lue_prop, @lue_statusCode, @overallStatus, @requestId, @Response, @Status, @Error, @curEmail
SET @sid = AttributeValue("_subscriberkey")
SET @jid = AttributeValue("jobid")
SET @listid = AttributeValue("listid")
SET @batchid = AttributeValue("_jobsubscriberbatchid")
SET @reason = "One Click Unsubscribe"
VAR @subscriberRows,@result
SET @subscriberRows = RetrieveSalesforceObjects(
"Contact",
"AccountId, Email",
"Id", "=", @sid )
if RowCount(@subscriberRows) == 1 then
VAR @subscriberRow, @AccountId
SET @subscriberRow = Row(@subscriberRows, 1)
SET @AccountId = Field(@subscriberRow, "AccountId")
SET @curEmail = Field(@subscriberRow, "Email")
endif
]%%