Hi all,
I'm just getting started on a new integration between Eloqua and our CRM system. For now I'm primarily interested in exporting Contacts from Eloqua.
I have 2 questions regarding the Eloqua REST API:
1. Searching for Contacts on most fields works fine. However, some fields result in an Internal Server Error 500. For instance, dateModified and dateCreated seem to cause this. Am I doing something wrong, or is this a known issue? I’m trying the following:
GET /Api/rest/1.0/data/contacts?search=C_DateModified%3D1389988359
2. In the JSON results returned from a Contact search, it seems like most fields are returned in the “fieldValues” array. This works well, and I’ve learned out how to look up the corresponding field definitions by their Ids in the results. However, a dozen fields are returned in a different format at the root level (e.g. updatedAt, accountName, businessPhone, country, emailAddress, firstName, lastName, etc.). I’m finding that this difference makes it difficult to work with the API consistently. I’m also not sure how to correlate these root-level fields with their field definitions. Is there any way to request that *all* fields be returned in the fieldValues array?
I also have a question regarding Filters in the Bulk API:
3. When creating an Export for exporting Contacts, it’s possible to specify a selection Filter, e.g.:
"filter":{"filterRule":"valueGreaterThanComparisonValue","value":"{{Contact.Field(C_DateModified)}}","comparisonValue":"2014-02-05 15:36:58"}
Is it possible to specify more than one Filter this way? (And if so, can one perform AND / OR operations on them?) Or must multiple selection criteria be accomplished by using a Segment Filter?
If a Segment Filter is required, I suppose I will need to programmatically create a new one for each export we do (and then delete it along with the export) since the dateModified we’re interested in will change with every export. Does that sound right, or is there a way to create a “reusable” Segment to which I could just pass in the desired date with each invocation?
Thanks for any help!