Using parameter Today in SSIS package - Source Salesforce

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
Gaetan
Posts: 6
Joined: Wed 21 May 2014 12:36

Using parameter Today in SSIS package - Source Salesforce

Post by Gaetan » Wed 21 May 2014 12:46

Hello,

I would like to use the parameter "TODAY" in SOQL statement with SSIS but it doesn't work.

Example:
select * from MyTable where LastModifiedDate=TODAY

I have the following error : Unknown column 'TODAY'

Is there a solution in order to filter data on the current day? (i'm using the Devart Salesforce Connection Manager - SSIS)

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Using parameter Today in SSIS package - Source Salesforce

Post by Shalex » Thu 22 May 2014 13:35

You are using the Devart Salesforce Source component, aren't you?

Please define your parameter (for example, with the GETDATE() expression) via SSIS > Variables menu of Visual Studio. After this, you can use newly created parameter in the query:

Code: Select all

select * from MyTable where LastModifiedDate='<@User::TODAY>'

Gaetan
Posts: 6
Joined: Wed 21 May 2014 12:36

Re: Using parameter Today in SSIS package - Source Salesforce

Post by Gaetan » Fri 23 May 2014 08:47

Thanks a lot :D

Post Reply