Loop and create

I have an Event table.
I have a People table.
I have a Presence table.

On an Event (Event type page), I have a “Valid” button.

I would like the click on this button to generate the following action:

Search in People: Id_Company: Presence = id_Company: People (that’s fine :slight_smile: )

For each People found, I want to create a Presence line (ok whith schedule an API workflow) and assign People and Event values ​​to Presence. (there I don’t know how to do it…)

A clear step-by-step explanation would be greatly appreciated ::sunny: