Hello all, I have a report that takes payroll statements from an excel file and emails them to each individual employee. Would there be a way to add in a date field that would use a payroll date, the date the employee would get paid on. For example, right before the email is sent I have a formula tool that creates a SUBJECT field which states 'Attached is your July's statement for payroll 9/3/2021'.
Currently I have to manually update the month name and the date based on when will the employee will get their check. The pay period is bi-weekly. Wanted to see if there was any way to automate this.
Thank you in advance.
Solved! Go to Solution.
Hi @Asimkz157 ,
If you have both the statement and payroll dates as fields in your data set, you can use a formula to update the subject:
"Attached is your " + DateTimeFormat([Statement Date], '%B') +"'s statement for payroll " + DateTimeFormat([Payroll Date], '%m/%d/%Y')
Formula tool:
Output:
If you are using the email tool in Alteryx, you can then select the calculated field to be the subject of your email
Hi, thank you for replying. The problem is I don’t have a date field. I was thinking of using a text input and creating a date field. Basically manually entering in all the pay dates but I’m stuck on the next step. How can I make the process pick up the correct pay date based on when the workflow runs? For example if I run it today - in the subject the month name should be last month and pay date should be 9/3 - next month. Hope that makes sense. I confuse myself with this stuff.
I might be messing something up when plugging it into my workflow. I'm getting multiple dates in my results.
I made a couple changes to my workflow. The one I attached generates all of the pay periods for the current year but now I added a couple tools to limit it to the next payroll date based on today's date.
I also added a second option that is more straightforward and uses a text input tool like you mentioned in your comment. You can just update this tool with the payroll date and it should create the subject field for you.
Thank you sir, that works perfectly.
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
5 |