Hi All,
I have created a power app and my requirement is as mentioned below
When a new item is created in List 1, i need to create 10 pre defined items in List 2. Also List 2 has a ParentID column which should refer to the ID from List 1 when an new is item created.
Trying to understand the most efficient way for doing this.
What i am doing now is,
- When my power apps loads i have a collection which has the 10 pre defined items .
- Created a new Item form
- On success of when a new item is created i am using UpdateIf to update one of the collection column to the ID of the newly created item
- Then using Patch( sharepoint list name, Collection Name), the 10 pre defined items get created in List 2.
- It takes about 5 seconds for this operation to complete
This seems to work but in the Patch documentation it says to use Defaults() to create new item. So i am unsure if this is the right way of doing it or if there is a better and efficient way.
Any inputs will be helpful