Is it possible to create a contact with the API block filter?

I use the API block to export contacts and would like to create a filter by using the API.

Is this possible?

If so, is there an example?

I use a POST at .../contact/filter and get an error HTTPNotFound.

Any guidance would be appreciated.

Thank you

Frank

Of course

You send a http request using the POST method when creating the export. In the message body, you include a JSON encoded string. Here is my code PHP to create the appropriate table:

$a_requestbody = array)

"filter" => $a_filter.

'name'-online 'export'.date ('Ymdhis'),

"secondsToRetainData"-online '3600',

"fields"-online $a_fieldmapping

);

The $a_filter variable is an array, which is set up like this:

$a_filter = array)

"FilterEnsemble"-online "valueEqualsComparisonValue."

-Online $a_fieldmapping ['C_EmailAddress'], 'value',

'comparisonvalue' => ' [email protected]'

);

I assume that you know how to configure the mapping of the fields, so I did not include here.

Other types of filters are available here: http://secure.eloqua.com/api/docs/Static/bulk/1.0/doc.htm#FilterRuleType

Hope this helps,

Wouter

Tags: Marketers

Similar Questions

Maybe you are looking for