Addresses

Resource type: address

Creates a new address record if the user has the necessary rights.

The parameters of this action include all fields active in enterprise for address records. You can look up the field names in the administration of onOffice enterprise (Extras->Settings->Administration->Tab Input fields->Column field).

Contact details (telephone, fax, email) are created via fixed parameters.

Parameter:

  • (individually)
  • phone
    Normal phone entry
  • phone_private
    Telephone entry with type “private”
  • phone_business
    Telephone entry with type “business”
  • mobile
    Telephone entry with type “mobile”
  • fax
  • email
  • Benutzer
    INTEGER. Field “Betreuer” (“Support”). You need to specify the user ID to set “Betreuer”. The user id can be retrieved with the Read user call.

Example:

...
"actions":[
    {
        "actionid":"urn:onoffice-de-ns:smart:2.5:smartml:action:create",
        "resourcetype":"address",
        "parameters": {
                "Anrede":"Herr",
                "Vorname":"Max",
                "Name":"Mustermann",
                "email":"m.mustermann@onoffice.de",
                "phone":"0241 12345",
                "Plz":"52074",
                "Ort":"Aachen",
                "Benutzer":"19",
                "HerkunftKontakt":["Suchmaschine","Newsletter"]
        },
        "resourceid":"",
        "identifier":""
    }
]
...

Response:

...
"response":{
    "results":[
        {
            "actionid":"urn:onoffice-de-ns:smart:2.5:smartml:action:create",
            "resourceid":"",
            "resourcetype":"address",
            "identifier":"",
            "data":{
                "meta":{
                    "cntabsolute":null
                },
                "records":[
                    {
                        "id":181,
                        "type":"address",
                        "elements":[
                        ]
                    }
                ]
            },
            "status":{
                "errorcode":0,
                "message":"OK"
            }
        }
    ]
 }
...