Closed Coysh closed 9 months ago
After you add a column to the table you need to:
Have you done the above?
Hi @georged - thanks. A server restart worked in this case. For the future, how would you go about refreshing the meradata cache? Creating new API credentials?
@Coysh you shouldn't need server restart or creating new creds or even reconnecting. Toolkit uses whatever cache implementation was provided when instantiating the connection. So, it's up to you to handle the cache refresh.
Metadata is cached here: https://github.com/AlexaCRM/dynamics-webapi-toolkit/blob/e15a16d96ec643abbf5b3df69de42a1acd4b7be2/src/WebAPI/OData/Client.php#L140.
@georged - Interesting, I haven't specified a custom cache pool. I've got OPCache enabled, but that was reset multiple times and as far as I know it doesn't cache on that sort of level.
This can be marked as closed. Hopefully will be helpful for someone in the future.
Describe the bug Created new field in Dynamics. Ensured API user has the correct user security roles. The role appears in the GET but does not get returned via toolkit.
Log below