Running fdk 9.0.8, it appears it is not possible to access the entity store from a custom installation page without having previously clicked on the “Install” button. A “Route not allowed” error is generated when you make any attempt to access any entities in the store.
There is a work around. Click on the “install” button before any custom information has been stored as this appears to initialise access to the entity store.
Steps to reproduce to the error:
Delete the .fdk and .log directories
Run “fdk validate”
Run “fdk run”
Go to the Custom Installation Page
Invoke code to access the entity store.
Steps to clear the error:
Repeat steps 1-4 above
Click on “Install” button at the bottom of the page. [This will enable access to the entity store]
This is the expected behaviour. We wanted to access the entities only when the app is installed. As you have mentioned, when the install button is clicked and upon successful installation, entities routes will be accessible.
Feel free to reach out when you face any other query.
We will have the custom object entities created when the installation is triggered similar to how we support key-value store support. As mentioned above, once you have installed the app you will have the access for entities.