Simon Fell > Its just code > export.py - a BeatBox sample

Tuesday, February 21, 2006

export.py, this is small yet complete sample that uses BeatBox to run queries and extract data from Salesforce.com into CSV files.

You can either specify just an object name, in which case it'll call describe to find out all the fields and build the SOQL to fetch everything, or you can pass in a complete soql statement yourself, e.g. export.py user@org.com password event or export.py user@org.com password "select id, subject from event"