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 entryphone_private
Telephone entry with type “private”phone_business
Telephone entry with type “business”mobile
Telephone entry with type “mobile”fax
email
Benutzer
STRING. Field “Betreuer” (“Support”). You need to specify the user name to set “Betreuer”. The user names can be found by queriying “Name” in the “data” parameter with the Read user call. In enterprise the user names are found under Extras >> Settings >> User.
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":"theotest", "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" } } ] } ...