Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Help with Create Item in Sharepoint Action - Issue Writing Expressions

(0) ShareShare
ReportReport
Posted on by 55

I need help writing the expressions for the Create Item in SharePoint action. See image for details. 

 

Screenshot 2024-03-14 121019.jpg

 

  • stov1a Profile Picture
    55 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    You are the best! Thanks so much. I tweaked the action name to add an underscore between "data" and "of" and it worked!

     

    Edited Expression: take(outputs('Get_form_field_data_of_agreement_in_JSON_format')['body/formDataList'],1)

     

  • Verified answer
    Chriddle Profile Picture
    7,652 Super User 2025 Season 1 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    Use this as Apply to each's input:

    take(
    	outputs('Get_form_field_dataof_agreement_in_JSON_format')['body/formDataList'],
    	1
    )

     

  • stov1a Profile Picture
    55 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    The 'Apply to Each' action worked perfect. My only issue now is that it is adding an additional item to the list for the Approver's inputs, which are not needed. How do I mark the end of where i want the outputs form the form data to be included in the create list item?

     

    See image below.

     

    stov1a_0-1710561698148.png

     

  • stov1a Profile Picture
    55 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    Thanks so much. I’ll give it a try! 

  • Verified answer
    Chriddle Profile Picture
    7,652 Super User 2025 Season 1 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    The input of the Apply to each is

    outputs('Get_form_field_dataof_agreement_in_JSON_format')['body/formDataList']

     

    In the Create item (within the Apply to teach) you address the items's properies like this:

    items('Apply_to_each')['Vendor Email']
  • stov1a Profile Picture
    55 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    Thanks so much for identifying the the “[“ character is.

     

    Do you mind helping me identifying how to configure the “apply to each” action? 

  • Verified answer
    Chriddle Profile Picture
    7,652 Super User 2025 Season 1 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    The JSON provided looks good.
    Although there is no “Description Vendor” property.

     

    The character mentioned (“[”) means that “formDataList” is an array.

    Therefore, you need to add an "Apply_to_each" to loop through this formDataList and create an SP list item for each of these array elements.

     

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    Thank you!

     

    I ran the JSON through the JSON validator and it is very upset with the P3P line. 

    I've tried a couple things, but I'm not sure the best way to do this. I think maybe someone who knows xpath will be able to get a clean solution for you, perhaps. @Chriddle 

  • stov1a Profile Picture
    55 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    Attached. Thanks!

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on at
    Re: Help with Create Item in Sharepoint Action - Issue Writing Expressions

    Hi there, 

     

    Do you have an anonymized version of the JSON output with the [ ? 

    I can take a look.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow