Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Create an email send definition using a filter definition #121

Open
kevinnwang98 opened this issue Oct 23, 2018 · 0 comments
Open

Create an email send definition using a filter definition #121

kevinnwang98 opened this issue Oct 23, 2018 · 0 comments

Comments

@kevinnwang98
Copy link

Im trying to create an email send definition with a filter definition included as well. I was able to create the email send definition with out the filter, however when I include the filter I get the error "A problem occurred processing your request" and an error code of "9999999".

let op = {
"Name": "Test",
"CustomerKey": "CustomerKey",
"Email": {
  "ID":"1234",
  "IDSpecified":true
},
"SendClassification":{
  "ObjectID":"5casd215basd2f-d261238-e811g5-80d3-11402asdec8196c8"
},
"SendDefinitionList":[
  {
    "CustomerKey": "Customerkey2",
    "FilterDefinition": {
        "Name" : "test",
        "CustomerKey": "Customerkey3",
        "DataFilter": {
            "Property" : "EmailAddress", 
            "SimpleOperator" : "equals",
            "Value": "email@email.com"
        }
    },
    "List": {
        "CustomerKey" : "1vbdksadg14avasdoj8ad124ngfcva1265"
    },
    "DataSourceTypeID": 'FilterDefinition',
    "SendDefinitionListType": "SourceList"
      }
    ],
 };

 SoapClient.create('EmailSendDefinition',op,(err, response) => {
    if ( err ) {
        console.log( err);
    }
    else{
      console.log( response);
    }
 });

When I try to create just the filter definition I get the error of "The DataFilter that was provided is invalid." and a code of "373009".

let co = {
    "Name" : "test",
    "CustomerKey": "CustomerKey",
    "DataFilter": {
        "Property" : "EmailAddress",
        "SimpleOperator": "equals",
        "Value": "email@email.com"
    }
}

  SoapClient.create('FilterDefinition',co,(err, response) => {
    if ( err ) {
      console.log( err);
    }

Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant