I need to create segmentation rules for showing a banner in my site based on zip. It is difficult to create rules for each zip as there might be 1000s of zip code.
Is it possible to create and upload rules in csv / json file to Sitecore?
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.Sign up to join this community
As Mark said, uploading rules is not a feature. You might instead want to look at the functionality that is available out-of-the-box for GeoIP rules. Do you need a rule for every single zip code? That is a lot of content to manage and unlikely what is expected by the authors.
I would suggest determining what your different banner variations are and what see if you can use the GeoIP-based rules to create the segments you need for the banners.
Nor would it be a good idea to have 1000s of individual personalisation conditions set up on any one of your renderings of your site. While the Rules Engine is reasonably performant, I doubt it scales nicely in this scenario,
You should instead be looking at a custom action. One you code yourself. That will hold the CSV data and assign the data source you require.