Replies: 1 comment 1 reply
|
Hi @j-hulbert, I took your example code and loaded it into a plugin. I am able to retrieve the associated one-to-one from CustomNoteType object, and prefetch without error. My guess is that your CustomModel is not defined within a directory called |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to extend NoteType using the new custom data model extension but having an issue fetch the related data in the same way as described in the docs.
https://docs.canvasmedical.com/sdk/custom-data-extending-sdk-models/
https://docs.canvasmedical.com/sdk/custom-data-custom-models/
The table is created successfully but I can't access the relation "scheduling_settings" directly from CustomNoteType like the docs suggest.
Error:
Or with prefetch enabled
Error:
I was able to get the settings via something this - but this seems very inefficient and doesn't match the docs example
One side note - I did load some values for NoteTypeSchedulingSettings for some NoteTypes but not all - not sure if that is playing a factor.
All reactions