0

I am trying to trigger a journey using SOAP API. It works for the existing contacts, but not for new contact. In REST API, there is a property called EstablishContactKey. Does anyone know how to set EstablishContactKey to True in SOAP API?

{
    "ContactID":
    "EventDefinitionKey":
    "EstablishContactKey": true, // To insert new Contacts
    "Data": {}
}
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
    <Options />
    <Objects xsi:type="ContactEvent">
        <Client>
            <ID></ID>
        </Client>
        <PartnerKey xsi:nil="true"/>
        <ModifiedDate xsi:nil="true"/>
        <ObjectID xsi:nil="true"/>
        <EventDefinitionKey></EventDefinitionKey>
        <Data>
            <AttributeSet>
                <PartnerKey xsi:nil="true"></PartnerKey>
                <ObjectID xsi:nil="true"></ObjectID>
                <Name></Name>
                <Items>
                    <Item>
                        <Values>
                            <Value>
                                <Name></Name>
                                <Value></Value>
                            </Value>
                        </Values>
                    </Item>
                </Items>
            </AttributeSet>
        </Data>
    </Objects>
</CreateRequest>
3
  • 1
    why aren't you using the rest api to inject contacts into a journey?
    – EazyE
    Jan 6 at 18:13
  • @EazyE REST API and Triggered Send are not options. The request goes through IBM DataPower Gateway and only the ContactEvent SOAP API format pass the DataPower validation. Jan 6 at 18:34
  • 1
    the contact event is a legacy entry event, and the subscriber had to exist within all subs or a population first, you will need to first add these subscribers to the all subs through API before using this contact event
    – EazyE
    Jan 6 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.