How to check if a policy has been updated in Sitecore Commerce

When creating new policies or updating existing ones, you need to re-Bootstrap the commerce engine to load the new entities into the database. If you notice that the policy is not being picked up for some reason or you are still getting old values from the policy in your code, what do you do?

Go to the Commerce Global database and have a peek in the CommerceEntities table. You will see the Entity column for the relevant environments.

CommerceEntities

Copy the data in the Entity column and paste into a JSON formatter.
CommerceEntities_PolicyDefinition

Now you can verify if the latest environment config has your new policy or not.

P.S. If none of this made sense, don't sweat- head over here to get a lowdown on entities and policies.

Show Comments

Get the latest posts delivered right to your inbox.