When creating a new Procedure item, the user can select all the Teams he wants to add to this procedure, through a checkbox (repeater group).
All Teams selected are saved as a list in the custom state RepeatingGroup Team > Selected.
When saving the new Procedure, I need to save the name of the Procedure in the Procedure column of the type Team, in all the respective Teams selected in the checkbox (and saved in the list in the custom state).
It’s probably a very simple solution, but I’ve tried every imaginable way to fetch only the Teams that contain name = the selected items, but I can only find the first item, last item, all itens of the Type, but never only the listed itens.
Hi there, @julianno.09… if I understand your post correctly, you shouldn’t have to do a search for teams. Rather, you should be able to set the list to change directly to the custom state because the custom state’s value is a list of the selected teams, right? Have you tried that already?
Also, when adding the procedure to the teams, you shouldn’t have to search for anything there, either. You should be able to reference the result of the previous step where you created the new procedure.