POST example/api/mailrecipient/CreateFromXmlData
https://app.bwz.se/bedrock/example/api/mailrecipient/CreateFromXmlData
Import MailRecipients.
Request Information
URI Parameters
None.
Body Parameters
Confirmed source of the imported recipients.
CreateMailRecipientXMLArgsName | Description | Type | Additional information |
---|---|---|---|
Data |
The MailRecipients with properties. Must be XML formatted. |
Collection of byte |
Required |
CreateNewRecipientProperties |
A flag to indicate whether recipient properties that can't be found should be created or ignored. |
boolean |
None. |
UpdateExistingRecipients |
A flag to indicate whether to update MailRecipients with properties from the data. |
boolean |
None. |
DestinationItemType |
Destination of the imported recipients. |
ImportTo |
Required |
MailRecipientListId |
Id of target MailRecipientList. Only used when matched with correct ImportTo. |
integer |
None. |
ImportSourceName |
Name/source of the recipient data which is display to users and recipients. |
string |
Valid name with max 256 characters |
OverrideBlockedRecipients |
Set to true if a mail recipients is blocked but shall be imported. |
boolean |
None. |
ConfirmPermissionToSend |
Set to true if permission to send email messages to the imported recipients exists. |
boolean |
None. |
ConfirmRecipientSource |
Confirmed source of the imported recipients. |
ImportRecipientsSource |
None. |
Request Formats
application/json, text/json
{ "Data": "QEA=", "CreateNewRecipientProperties": true, "UpdateExistingRecipients": true, "DestinationItemType": 1, "MailRecipientListId": 1, "ImportSourceName": "sample string 3", "OverrideBlockedRecipients": true, "ConfirmPermissionToSend": true, "ConfirmRecipientSource": 0 }
application/xml, text/xml
<CreateMailRecipientXMLArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.MailRecipient"> <ConfirmPermissionToSend>true</ConfirmPermissionToSend> <ConfirmRecipientSource>UNKNOWN</ConfirmRecipientSource> <CreateNewRecipientProperties>true</CreateNewRecipientProperties> <Data>QEA=</Data> <DestinationItemType>EXISTING_LIST</DestinationItemType> <ImportSourceName>sample string 3</ImportSourceName> <MailRecipientListId>1</MailRecipientListId> <OverrideBlockedRecipients>true</OverrideBlockedRecipients> <UpdateExistingRecipients>true</UpdateExistingRecipients> </CreateMailRecipientXMLArgs>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
An ImportResult
ImportResultModelName | Description | Type | Additional information |
---|---|---|---|
ExistingRecipients |
Nubmer of MailRecipients that already existed. |
integer |
None. |
NewRecipientsCreated |
Number of new MailRecipients created. |
integer |
None. |
RecipientsAddedToList |
Number of MailRecipients that was added to list. |
integer |
None. |
RecipientsNotImported |
Number of MailRecipients that wasn't imported. |
integer |
None. |
SharedBlockedRecipients |
Number of MailRecipients that wasn't imported due to shared block list. |
integer |
None. |
ImportStatus |
Status of the import. |
BackgroundImportStatus |
None. |
Response Formats
application/json, text/json
{ "ExistingRecipients": 1, "NewRecipientsCreated": 2, "RecipientsAddedToList": 3, "RecipientsNotImported": 4, "SharedBlockedRecipients": 5, "ImportStatus": 0 }
application/xml, text/xml
<ImportResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models"> <ExistingRecipients>1</ExistingRecipients> <ImportStatus>INIT</ImportStatus> <NewRecipientsCreated>2</NewRecipientsCreated> <RecipientsAddedToList>3</RecipientsAddedToList> <RecipientsNotImported>4</RecipientsNotImported> <SharedBlockedRecipients>5</SharedBlockedRecipients> </ImportResultModel>