I am using Ruby on Rails with the Legacy XML-RPC API, and I am unable to get a list of all my campaigns via the DataService query. It works fine when querying other tables, but not Campaign, it will just return nil.
I also tested this out on the io-docs, with the same result.
My Ruby code:
`campaign_query = {"Id" => "%"}
selected_fields = %w(Id Name)
campaigns = Infusionsoft.data_query("Campaign", 1000, 0 , campaign_query, selected_fields)`
Raw XML request:
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>DataService.query</methodName><params><param><value><string>[REMOVED AUTH TOKEN]</string></value></param><param><value><string>Campaign</string></value></param><param><value><int>1000</int></value></param><param><value><int>0</int></value></param><param><value><struct><member><name>Name</name><value><string>%</string></value></member></struct></value></param><param><value><array><data><value><string>Name</string></value></data></array></value></param><param><value><string>Name</string></value></param><param><value><boolean>0</boolean></value></param></params></methodCall>