- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2019 11:58 PM
Hi,
I have required/mandatory fields in Customer_contact table. When i try to create (POST) a contact via REST API it is creating record with status 201. But i have a required field account in customer_contacts table.
Please refer below image
Below is the contact which i have created via REST API.
Below image is the response for contact creation.
My question is, Why error not Shown when i try to post a contact via REST API, though a required field is not sent in request payload.
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 06:43 AM
glad it worked .
kindly mark my answer as correct and close this thread
if you have further question , kindly open new thread .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 05:46 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 05:53 AM
can you remove the condition and then try
Data policy will application when you will not have any value in account, so initially you get an error because you had not any value in account then data policy get triggered , in second hit you had value in account then data policy did not apply so kindly remove the condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 06:35 AM
Its Working now after removing account condition.
#1.What to do to get errors like Maximum length exceeded,Invalid data with REST API. Is this possible to get specific error in API response?.If yes Please tell How to achieve this?
#2.Also is there any possible to add fields in bulk like, all fields in a table or all fields in a view to data policy .Since the user may have 30 fields in one table(contact) and 20 fields in another table .Adding each field to data policy will take more time.
Please confirm this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 06:43 AM
glad it worked .
kindly mark my answer as correct and close this thread
if you have further question , kindly open new thread .