Question
SSE Retail Ltd
GB
Last activity: 3 Aug 2021 10:11 EDT
Date/Time capture via data transform
Good Afternoon,
I am currently building a function onto a system that captures the date and time that marketing consent has been captured/updated. This then displays on a UI with ticks and crosses depending on if a check box is ticked or unticked.
I currently have 2 set being an email marketing capture and post marketing capture, I have a check box which has an action set setting the date and time this is checked or unchecked. I have have 2 seperate tick boxes which are exactly the same data transform bar different properties for email and post.
I want to combine the two so I have them in one data transform but I am unable to get this to work the same as before, I have a feeling I have to do this via parameters but I am not sure how, does anyone have a solution?
Currently the data transform is:
When .MarketingConsentEmail==true
Set .EmailMarketingDate equal to @CurrentDateTime()
When .MarketingConsentEmail==false
Set .EmailMarketingDate equal to ""
The post one is :
When .MarketingConsentPost==true
Set .PostMarketingDate equal to @CurrentDateTime()
When .MarketingConsentPost==false
Set .PostMarketingDate equal to ""
How do I have them combined into one data transform with the same functionality?
Thankyou
Richard- SSE, OVO