- 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 12:30 AM
why did you write ui policy on "sys_dictionary" table, it has been written on "sys_dictionary" table that's why you were not seeing it.
can you write the UI Policy on the table where you are dealing with the records and form UI and then you will convert it to data policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 12:43 AM
I am not trying to write UI policy newly. I want to apply existing UI policies to data policy. Thats all.Because my target is i want to show all validations done in CRM UI in my intergration using REST API.
I am new to service now.Please correct me if anything is wrong.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 12:46 AM
i would suggest dont change the OOTB one,
i am assuming here you have a table where you are creating a record using REST API, so kindly create data policy directly on that table and make those columns mandatory using data policy .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 05:14 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 05:32 AM