Table of Contents

API - Contacts

This is a fork of page 30071 "APIV2 - Contacts" from version 27.0.38460.40573. Added support for Extra Fields.

Object Definition

Object TypePage
Object ID70314145
Object NameQWESR API - Contacts
Source TableContact

API Definition

APIPublishersmartApps
APIGroupspider
APIVersionv1.0
EntitySetNamecontacts
EntityNamecontact

Events

Name Description
OnAfterInsert(Record Contact; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text; List of [Integer]) Raised after a record is inserted.
OnBeforeModify(Record Contact; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text; List of [Integer]) Raised before a record is modified.
OnGetExtraValues(Record Contact; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised after a record is read from the database. Makes it possible to set the ExtraValues 1..10, to be returned to the client.

Example

Read

Get a list of Contacts.

GET businesscentralPrefix/companies({id})/contacts?$schemaversion=2.0

Get a single Contact.

GET businesscentralPrefix/companies({id})/contacts({id})?$schemaversion=2.0

Create

Create a new Contact.

POST businesscentralPrefix/companies({id})/contacts?$schemaversion=2.0
Content-type: application/json
{
   "type": "Company",
   "displayName": "Cronus"
}

Controls

Type Name Data Type Read-only
Field id Yes
Field number
Field type
Field displayName
Field jobTitle
Field companyNumber
Field companyName
Field contactBusinessRelation
Field addressLine1
Field addressLine2
Field city
Field state
Field country
Field postalCode
Field phoneNumber
Field mobilePhoneNumber
Field email
Field website
Field searchName
Field privacyBlocked
Field taxRegistrationNumber Text[50]
Field lastInteractionDate Yes
Field lastModifiedDateTime
Field extraValue1 Text
Field extraValue2 Text
Field extraValue3 Text
Field extraValue4 Text
Field extraValue5 Text
Field extraValue6 Text
Field extraValue7 Text
Field extraValue8 Text
Field extraValue9 Text
Field extraValue10 Text
Sub page picture

This documentation is generated from Spider v27.4