Does anyone know if it is possible to restrict a "...
# suitecommerce
r
Does anyone know if it is possible to restrict a "User Event" type script to only execute in the context of a particular website? We have two websites and we only want certain UE scripts to run for certain websites
p
if you have different roles for customers you might get away with that
r
Thanks PabloZ, Though I don't believe we have different roles for customers.
p
Then... some records have the website attribute, you can leverage that and read from newRecord Obviously not exactly what you want (it's code not config) but might be close for some use cases.
and... this might be far fetched and totally not your case, but 20.1 has localization context. If your sites are in different regions you might want to play around with that. Never tested that myself and can potentially not work on webstores, but it might work for you.
Or subsidiaries too, you can filter by sub
r
Many thanks PabloZ , we'll look into those options