79535161

Date: 2025-03-26 00:38:18
Score: 1.5
Natty:
Report link

Using your existing pipeline activites this is probably the simplest approach.

1. Do your lookup exactly how you are

2. In your Set Variable Activity use this dynamic content expression:


@formatDateTime(activity('Lookup1').output.firstRow.xdate, 'yyyy-MM-dd')

enter image description here

3. Your Script Activity can be simplified to just this:

delete from dbo.temp_paycor_payroll
where [Check Date] = '@{variables('xdate')}'

enter image description here

This should do it! Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Trent Tamura