0

Would anybody know how to create a new Contact Persons for a Business Partner via the Service Layer (REST API json) ?

Thanks

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Patrick
  • 1
  • 1
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Sep 06 '21 at 18:34

1 Answers1

0

There's a "ContactEmployees" collections on the "BusinessPartner" entity. Send a PATCH request to the BP, something like:

PATCH https://server:50000/b1s/v1/BusinessPartners('C00001')

{
    "ContactEmployees": 
       {
        "Name": "Arthur Dent"
       }
}

(I deleted my first answer because I confused BP contacts with the entity for 'activities' which is also referred to as 'contacts' in the API.)

Daz
  • 2,833
  • 2
  • 23
  • 30