Summarize the problem - I've tried to work out how to use a flow to delete specific data if the last modified date is today's date + 2 years ago. This is then to delete specific data within the Campaign Member information (name, email etc) so that after the 2 years, whatever is stored gets deleted automatically (without going down the apex route unless I have to..)
Describe what you’ve tried - I've created a couple of flows, some have worked and some have not thanks to my dodgy formula creations - I did manage to get it working to show me some data, however I still can work out how to get it to calculate over 2 years old as the last modified date... I did find a snippet of code, again - it didn't work for me, IF(CampaignMember.LastModifiedDate < TODAY() - 2 * 365, 'YES', 'NO')
Here is a picture of the working flow.. that works.. but it's not automated.. Attempt 1
As I was being a dummie - I thought to use an auto launched flow to make it work in the background for me, checking all the time to see if the Campaign has been over 2 years, Automated one and Here's the formula that I've put above the decision
Anybody know where I'm going wrong here or should I start learning Apex to do this?
Many thanks in advance!
Update 11/04/21
Using the checkbox has managed to work something - please see my comment for more information below: Here's the latest -