Run the getinput on the item with the flags, then ...
# suitescript
z
Run the getinput on the item with the flags, then look for the custom record and set the item record value in the map section is what I’m envisioning.