Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to mark a record type queryable in cloud kit programmatically

Im having an issue with cloud-kit whenever I create a new CKRecordType programmatically. In the cloud kit dashboard this is the error message I get:enter image description here

The quick and easy fix would be to click the "Add ID Query Index" button and be done with it, however, I was wondering if there was a way you could accomplish this programmatically. The reason being is because when the app is deployed, the user will have the ability to create new record types and it would be a major hassle and a reck if I had to check cloud-kit every time a user decides to make a new record type.

Any help would be appreciated!

like image 367
Garret Kaye Avatar asked Jul 02 '15 22:07

Garret Kaye


1 Answers

In production you are not allowed to create new recordTypes. Besides that you can only add indexes from the dashboard on development.

like image 142
Edwin Vermeer Avatar answered Oct 04 '22 02:10

Edwin Vermeer