Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »


public string StartImportProcesses(string listsIDs, string listsGUIDs, string xmlDoc, string groupsIDs,
int importType, int mobileInputType, bool asPending, bool ConfirmEmail, bool asOptOut, bool forceOptIn)


This method creates and automatically starts an import process for the contacts listed in the xmlFeed. The system will then automatically create a confirmation newsletter based on a default template.


Parametri

  • idList: list identifier
  • listGuid: GUID of the list
  • xmlDoc: XML string containing the contacts to be imported (see Appendix A)
  • groupsIDsgroup identifiers separated by comma (more than a group for each list is possible)
  • importType: import type (default value=3)
  • mobileInputType: mobile number input type  (see Appendix A)
    • 1= include international code
    • 2=international code and phone number in two different fields
  • asPendingsubscribes users as pending, if true (default value=false)
  • ConfirmEmailsends confirmation request email (default value=false)
  • asOptOutimports users as unsubscribed (default value=false)
  • forceOptInforces subscription of users (default value=false)
  • replaceGroupsreplaces groups (default value=false)

 
How to use the parameters listsIDs, listsGUIDs e groupsIDs

  • Specify lists

listsIDs = "84;85;86" to import contacts to lists 84, 85, 86

  • Specify list GUIDs

listsGUIDs = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

  • Specify the groups for each list

The contacts will be imported to list 84 and to groups 12,13
The contacts will be imported to list 85 and to group 23
The contacts will be imported to list 86 but no specific group 

groupsIDs = "12,13;23;0"


Return message:

 

<mailupMessage>
    <mailupBody>
        <ReturnCode>0</ReturnCode>
        <processes>
            <process>
                <processID>0</processID>
                <listID>84</listID>
                <ReturnCode>-410</ReturnCode>
</process>
            <process>
                <processID>18</processID>
                <listID>85</listID>
                <ReturnCode>0</ReturnCode>
</process>
            <process>
                <processID>19</processID>
                <listID>86</listID>
                <ReturnCode>0</ReturnCode>
</process>
        </processes>
    </mailupBody>
</mailupMessage>


Specific error codes for this method

  • -400 unrecognized error
  • -401 xmlDoc is empty
  • -402 convert xml to csv failed
  • -403 create new import process failed
  • -410 can not create confirmation email
  • -450 listsIDs and listsGUIDs must contain the same number of elements
  • -600 unrecognized error
  • -601 an import process is already running for the list
  • -602 an import process is already running for a different list
  • -603 error checking process status
  • -604 error starting the process job

 

None  Edit Labels



  • No labels