Hi @Bobby P
How about change the WHERE filtering Clause
WHERE [DynamicsCRM.po_program].[rsm_dtpprogramid] = ' + @DynamicQuote
+ N'''10105''' + @DynamicQuote + N' AND [DynamicsCRM.rsm_emailnotification].[CreatedOn] >= '
+ @DynamicQuote + @DynamicQuote + @StartDateDeriveUTC + @DynamicQuote + @DynamicQuote + N')'
to this:
WHERE [DynamicsCRM.po_program].[rsm_dtpprogramid] =
'+ @DynamicQuote + N'''10105''' + @DynamicQuote + N' AND [DynamicsCRM.rsm_emailnotification].[CreatedOn] >= '
+ @DynamicQuote +convert(varchar(30), @StartDateDeriveUTC, 109) + @DynamicQuote + N')'
Best regards,
LiHong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.