web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

New entry

(0) ShareShare
ReportReport
Posted on by 2,157

I have aprocess that creates a new entry into a sharepoint list based on action when a new record is created in a Cognito Form.  My problem is that there are times where the cognito form has multip sub entries.  The way that interacts with the create new in sharepoint is that it creates a new entry for each item if there are multipe sub items.  

 

I want to only create the one master list item no matter how many sub entries there are.  Is there a way to ensure only one is created?

Categories:
  • efialttes Profile Picture
    14,756 on at

    @leyburn19 

    Can you share more details of your flow?

    -A screenshot of "SP create item" action block details, showing its inputs

    -An example of a Cognito form record with subentries, as it is processed by Flow when you execute it

    Thanx!

     

  • leyburn19 Profile Picture
    2,157 on at

    It is a fairly straight forward flow.  

    When anew entry is created in a cognito form it is picked up by flow and a duplicate entry is created in my share point list.

     

    As the cognito form has a a sub table where you can add mutiple items (so one to many) the flow aknowledges this possibility as soon as you put one sub item to be passed to the list and creates an apply to each.

     

    I only want the one master record in this list so I need to somehow select only the first record in the apply to each.  I do not need all the sub entries.  In the majority of cases users only create the one entry so the problem is random but does happen

  • efialttes Profile Picture
    14,756 on at

    Hi again

    I had never worked with a Cognito form, that's why I was asking for more info

    From your explanation, I guess the Cognito form output is an array with 1 to N JSON objects, and you just need the first object.

    If so, you can use an expression: apply first() WDL function to your Cognito form output array so you will get the first object as soon as the array is not empty

    If my guessing is wrong, then the info I requested in my first post would be useful to understand better your needs

     

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard