Catalog Item Variables Deletion

Alpcan
Tera Contributor

Hello eveyone, I have an issue about deletion of catalog item variables with script. My categories, catalog items and catalog item variables have been created and automated using script. But there is a problem about deletion of catalog item variables with script. I can't delete any catalog item variables. I have specified the script section I used below.

var gr = new GlideRecord("item_option_new");
	gr.addQuery('sys_scope',scope);
	gr.query();
	if(gr.next()){
		gr.deleteRecord(true);
        }

 

1 ACCEPTED SOLUTION

@Alpcan you might have to create a cross scope policy to do it via your scope 

navigate to Application -cross scope access and create a new one like below 

 

Screenshot 2023-08-09 at 17.50.29.png

 

Target scope is your scope and target name is your table name and select operation as delete 

and set status as allowed.

Screenshot 2023-08-09 at 17.51.04.png

Hope this helps 

Mark my answer correct if this helps you 

Thanks

View solution in original post

10 REPLIES 10

Thank you so much.