I need to retrieve all the validation rules associated with a given object, using the REST API.
Looking in doc/forums, I've found that I could retrieve validation rules associated with an object using the following query:
https:///services/data/v35.0/tooling/query?q=Select Id,Active,Description,ErrorDisplayField, ErrorMessage From ValidationRule Where EntityDefinitionId = 'xxxxx'
The problem is that I don't have the object'ID needed to filter, I only have its name. Is there any way to filter using the object's name?
Another alternative seems to be getting the object'ID, but it seems that Metadata REST API (i.e. describe) does not return it.
Any help on this is very appreciated.