POST example/api/mailrecipient/CreateFromTabData

https://app.bwz.se/bedrock/example/api/mailrecipient/CreateFromTabData

Import MailRecipients.

Request Information

URI Parameters

None.

Body Parameters

Confirmed source of the imported recipients.

CreateMailRecipientTabArgs
NameDescriptionTypeAdditional information
Data

The MailRecipients with properties. Must be tab separated.

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

Sample:
{
  "Data": "QEA=",
  "CreateNewRecipientProperties": true,
  "UpdateExistingRecipients": true,
  "DestinationItemType": 1,
  "MailRecipientListId": 1,
  "ImportSourceName": "sample string 3",
  "OverrideBlockedRecipients": true,
  "ConfirmPermissionToSend": true,
  "ConfirmRecipientSource": 0
}

application/xml, text/xml

Sample:
<CreateMailRecipientTabArgs 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>
</CreateMailRecipientTabArgs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

An ImportResult

ImportResultModel
NameDescriptionTypeAdditional 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

Sample:
{
  "ExistingRecipients": 1,
  "NewRecipientsCreated": 2,
  "RecipientsAddedToList": 3,
  "RecipientsNotImported": 4,
  "SharedBlockedRecipients": 5,
  "ImportStatus": 0
}

application/xml, text/xml

Sample:
<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>