I have a variable that that is pulling from another variable and applying the Field
function to it as below.
set @CampaignStartTime = Field(@CampTypeRows,"Event_Time_Text__c")
I now want to apply the function SystemDateToLocalDate
to the line above to make the time output localised.
I tried the below but keep getting validation issues:
set @CampaignStartTime = SystemDateToLocalDate(Field(@CampTypeRows,"Event_Time_Text__c"))
Also, worth mentioning I have another block further down the email which is setting new variables using @CampaignStartTime
. Will any changes impact my second block?
set @GoogleStartEndTime = (CONCAT(
Format(@CampaignDate, "yyyyMMdd")),
'T',
Format(@CampaignStartTime, "HHmm"),
'00Z',
'%2f',
Format(@CampaignDate, "yyyyMMdd"),
'T',
Format(@CampaignEndTime, "HHmm"),
'00Z'
)
What am I doing wrong? and How can I fix it?