Hi,
Sorry for submitting another question. I can't seem to reply to the other. I receive an error in both Chrome and Edge.
Further to previous enquiries, I have found a similar issue when creating a new entity that has a key that is effectively a foreign key to another entity type.
I have Vendors and Vendor Bank Accounts. The Vendor Bank Account has an ID and Vendor Number as keys. The Vendor Number determines the relationship between the two entities.
When I do a POST to create a Vendor Bank Account I provide the ID and Vendor Number in the body...
.../OData/Company('XXX')/Vendor_Bank_Account_Card
{
"Vendor Number": "10",
"ID": "1"
}
(Also tried "Vendor_Number")
However I receive a message...
The Vendor Bank Account already exists. Identification fields and values: Vendor Number='',ID='1'
The request doesn't seem to recognise the Vendor Number value.
Any assistance would be greatly appreciated as the issue is driving me crazy.