I am creating automations through the API and would like to add email addresses to the "Notification Settings" fields in the "Activity" tab. Is this possible to do through either SOAP or REST?
The answer is NO. There is no way to add an email to the notification settings of an automation.
Actually, there is an option in the Soap request on the help page that "normally" adds this parameter, but under a comment that clearly stats that it does not work: Check out the comment on the
<!--<Notifications> DOES NOT WORK <Notification> <Address>email@example.com</Address> <NotificationType>-1</NotificationType> </Notification> </Notifications>-->
========== ============= =====
Actually, the answer is YES. I have conducted multiple tests today and found out that there is a problem on the documentation page.
They are not using the correct values for the parameters on their SOAP request.
So, to sum things up, make a POST SOAP api call using something like below.
NotificationType value should be one of these two:
channeltype as it is.
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI"> <Options/> <Objects xsi:type="Automation"> <Client> <ID>50000xxxx</ID> </Client> <Name>AUT_ONEOFF4</Name> <CustomerKey>AUT_ONEOFF4</CustomerKey> <Description>AUT_ONEOFF4</Description> <Notifications> <Notification> <ChannelType>1</ChannelType> <NotificationType>Complete</NotificationType> <Address>firstname.lastname@example.org</Address> </Notification> </Notifications> <AutomationType>scheduled</AutomationType> </Objects> </CreateRequest>
Don't forget to change the clientID.