Was this page helpful?

CreateContact function

    Table of contents

    from main.wsdl

    required:

    •    treeHandle: use "node" from WWWCONTACTSNODE or CONTACTNODE (ORGRANIZATION -> DEFAULTS -> DEFAULT) from Login function
    •    name1 (it's surname for person or name of company)

     

    optional:

    •     validFrom, validTo - date of contact validation; format 1984-12-03T00:00:00
    •     name2, name3 - mid name and first name for PERSON only
    •     PERSONINFO

              sex: 1 - male, 2 - female, 0 - not inserted

              maritalStatus: 1 - single, 2 - married, 3 - divorced, 4 - widow

              preferedLang - ListLanguages

              nationality - ListContactList with list=nationality

    •     COMPANYINFO

              legalForm - ListContactList with list=companylegalform

    •     INDUSTRY

              industry - ListContactList with list=industry

    •     ADDRESS

              type - ListContactList with list=contacttype

              region - ListRegion

              city - ListCity

              country - ListCountry

              zip - ListZip

    •     CONTACT

              type - id from ListContactList with list=contacttype

              typeType - type from ListContactList with list=contacttype

    •     DGROUPS -> DGROUP

              id - ListDistributionGroup

    •     EMPLOYEE

              id - GetContactList

              positionInfo - description of that position

              position - ListContactList with list=position

              department - ListContactList with list=department

              isPrimary - primary employment

    •     RELATION

              contact - GetContactList

              relation - ListContactList with list=relationtype_p for PERSON or list=relationtype_c for COMPANY


    Add file (picture) to contact - ContactDataTransfer.

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://atollon.com/enterprise/wsdl">
       <soapenv:Header/>
       <soapenv:Body>
          <wsdl:CreateContact>
             <server>${Login#Request#//wsdl:Login/server}</server>
             <session>${Login#Response#//atollon:LoginResponse/session}</session>
             <PERSON>
                <treeHandle>1686000</treeHandle>
                <name3>Karel</name3>
                <name1>Bouda</name1>
                <ADDRESSES>
                   <ADDRESS>
                      <type>1880000</type>
                      <street>nušlova</street>
                      <city>35210000</city>
                      <region>44950000</region>
                      <country>2932000</country>
                      <isPrimary>false</isPrimary>
                   </ADDRESS>
                </ADDRESSES>
                <CONTACTS>
                   <CONTACT>
                      <content>karel.bouda@seznam.cz</content>
                      <type>1883000</type>
                      <isPrimary>false</isPrimary>
                   </CONTACT>
                </CONTACTS>
                <PERSONINFO>
                   <prefixTitle>Ing.</prefixTitle>
                   <sex>0</sex>
                   <maritalStatus>0</maritalStatus>
                   <preferedLang>2607000</preferedLang>
                </PERSONINFO>
             </PERSON>
          </wsdl:CreateContact>
       </soapenv:Body>
    </soapenv:Envelope>

     

    <persistency-response operationId='CreateContact'>
    <atollon:CreateContactResponse xmlns:atollon="http://iterity.com/enterprise/wsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <result>OK</result>
      <time>2.61273384</time>
      <newId>81617000</newId>
    </atollon:CreateContactResponse>
    </persistency-response>

    Comments

    You must login to post a comment.

    Attach file

    Attachments