Page 1 of 1

Using parameter Today in SSIS package - Source Salesforce

Posted: Wed 21 May 2014 12:46
by Gaetan
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)

Re: Using parameter Today in SSIS package - Source Salesforce

Posted: Thu 22 May 2014 13:35
by Shalex
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>'

Re: Using parameter Today in SSIS package - Source Salesforce

Posted: Fri 23 May 2014 08:47
by Gaetan
Thanks a lot :D