Hi there, I am trying to create a package which downloads some xml from a web api and puts it in a database.
I can only download 3 months worth of data at a time - otherwise it times out. The URL has two parameters: fromdate and todate.
I have created a data flow task (XML Source) with "XML file from variable" using User::DateRange. The DateRange variable is of type String and has Package scope.
This Data Flow Task is placed inside a Foreach Loop Container. I am now trying to create an expression which cycles through date ranges.
http://api.website.com/job.api/list?apiKey=xxxx&accountKey=xxxx&from=20120101&to=20120401&detailed=true
The bold/underline portion is obviously the dates. Does anyone know how I would go about writing an expression which increments both dates up by 3 months starting from 2010101 and ending at the end of the current (or next) month?
Perhaps this is too complex for an expression? If I have to write a script then I'll need to ask another question as it's not my forte.
Thanks, Bryan