We are developing an external application to Creatio with integration via oData.
We need to know how to obtain with odata the required fields of a schema, for example contact and the data type of each field.
Thank you!
Regards
Like
Hello Uriel,
Once authenticated normally, you can do a POST to the following (it's DataService, but when you authenticate for OData it will also work for DataService, even if you're using OData for the other requests):
/0/DataService/json/SyncReply/RuntimeEntitySchemaRequest
Include the following payload in the request:
{"uId":"25d7c1ab-1de0-4501-b402-02e0e5a72d6e"}
Where the uId included is the UId for the entity (you can get this from SysSchema or VwSysSchemaInWorkspace where ExtendParent = false). You'll get back a json payload with details for all columns, including the "isRequired" value for the column.
Ryan
Hello Uriel,
Once authenticated normally, you can do a POST to the following (it's DataService, but when you authenticate for OData it will also work for DataService, even if you're using OData for the other requests):
/0/DataService/json/SyncReply/RuntimeEntitySchemaRequest
Include the following payload in the request:
{"uId":"25d7c1ab-1de0-4501-b402-02e0e5a72d6e"}
Where the uId included is the UId for the entity (you can get this from SysSchema or VwSysSchemaInWorkspace where ExtendParent = false). You'll get back a json payload with details for all columns, including the "isRequired" value for the column.
Ryan