Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Date Stamp Log for Next Workflow

RDF25087
8 - Asteroid

Hi all -

 

In my mind this sounds simple, and I'll try and explain as clearly as I can what I need...

 

So, let's imagine I have a simple table of data, e.g.

Contract NumberProductPriceCreated Date
10001C1.0212.03.2022
10002E14.3608.05.2022
10003A6.8718.02.2022
10004C11.0730.05.2022
10005D12.3309.04.2022

 

I run my Alteryx workflow on 01.06.2022 and it emails this table to a set of recipients.

 

Okay, fine I can do that - not a problem.

 

However, give it a couple of months and my original table has expanded, e.g.

Contract NumberProductPriceCreated Date
10001C1.0212.03.2022
10002E14.3608.05.2022
10003A6.8718.02.2022
10004C11.0730.05.2022
10005D12.3309.04.2022
10006B15.2811.06.2022
10007E38.8814.06.2022
10008A4.2123.06.2022
10009A5.2401.07.2022
10010C15.8320.07.2022

 

Now the tricky part....

 

Next time I run my Alteryx workflow I only want it to email out the above table where the Created Date is greater than the date the last time the workflow was ran (01.06.2022) - so it should only email out a table including contracts 10006 through 10010.

 

I thinking a simple Excel log file?

 

Any thoughts or more elegant solutions greatly appreciated.

RDF

3 REPLIES 3
Robin_McIntosh
11 - Bolide

Perhaps write to a file (Excel or text) each time you run the report; either overwrite so it's a single entry or just keep adding if you need to keep track of run dates.  Then pull that file into the Workflow and compare the last date to your records.

 

Here's an example overwriting the log file.  The initial log file has a date of 2022-01-20.  Obviously, you'll need to update the Input and Output filepath for your log file.

Robin_McIntosh_1-1658771135928.png

 

FreeRangeDingo
11 - Bolide
11 - Bolide

I was going to suggest writing to a text file and using the text file as an input, similiar to what @Robin_McIntosh said.

RDF25087
8 - Asteroid

@Robin_McIntoshthank you for the response - I have added your solution to my own data and it runs perfectly. Many thanks!

RDF

Labels