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:
Set .EmailMarketingDate equal to @CurrentDateTime()
Set .EmailMarketingDate equal to ""
The post one is :
Set .PostMarketingDate equal to @CurrentDateTime()
Set .PostMarketingDate equal to ""
How do I have them combined into one data transform with the same functionality?