cancel
Showing results for 
Search instead for 
Did you mean: 

B1 Service Layer: I cannot delete the address record we want in Business Partner BP Addresses.

mehmet_gunes
Explorer
0 Kudos
795

Dear Expert,

(B1 Service Layer : BusinessPartner BPAddresses)

With this method, all records are deleted. The address I just sent is being added.

But we only want to delete the current address we selected.

Is there a method for this?

----------------------------------------------------------------------------------------------

PATCH /b1s/v1/BusinessPartners('XYZ')

B1S-ReplaceCollectionsOnPatch=true {

"BPAddresses": [

{

"AddressName": "name" }

,

]

}

View Entire Topic
Former Member
0 Kudos

Hello,

Keep B1S-ReplaceCollectionsOnPatch=false, and send the full payload, with all the required addresses.

Thanks

mehmet_gunes
Explorer
0 Kudos

Hello Taseeb,

How can I delete only the selected record?

Br,

AhmetC

Former Member
0 Kudos

Hello Ahmet,

I guess you can not delete only the selected address, as addresses do not have separate API, You can get the Full Payload by requesting Get BusinessPartners("CardCode") and remove the address which is not required, and Patch BusinessPartners("CardCode") .

Regards,

Taseeb Saeed