0

I have a custom plugin which has a table with rows. I have Add button to add a row. While adding I want to ensure uniqueness of a property value. By default childView.Properties.Add has IsRequired = false/true but there is nothing to check if the value is unique.

Please can someone help me on this?

  • you need to look into IValidateEntityPipeline and PlugIn.Validation.PolicySet-1.0.0.json. you might need to do customization based on your requirements. – Vipin Banka Aug 12 at 14:51
0

The following link helped me. https://websterian.com/2018/10/10/sitecore-commerce-adding-an-entirely-new-entity-part-1-commerce-engine-and-business-tools/

Have a look at validationError in DoActionAddBrandBlock.cs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.