The Problem with Policies and What about Policy Sets?

T

When you’re building a Sitecore plugin, you might create a policy in a single json file, deploy and bootstrap it thinking everything is file. Unfortunately, Sitecore doesn’t really support an “easy” deploy of addition of plugins (i.e. there is no search, install, configure process through the XC interface), instead, even though you have configured your plugin in its json file, what you actually created was a Policy Set and you will also need to reference the policy set in the primary environment policy file. In most “demo” setups, that means adding it to the PlugIn.Habitat.CommerceAuthoring-1.0.0.json file, adding a block like this

{
"$type": "Sitecore.Commerce.Core.PolicySetPolicy, Sitecore.Commerce.Core",
"PolicySetId": "Entity-PolicySet-TheUniqueStringInYourPolicySetFile"
}

About the author

Kelly Brennan
By Kelly Brennan

Your sidebar area is currently empty. Hurry up and add some widgets.