How to Change assignment group based on catalog item variable??

priyanka0709
Tera Contributor

We have one existing catalog item. now requirement came so need to change assignment groups based on one of the variable field present on catalog item.

How can we achieve this scenario?