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 Platform Community / Forums / Power Automate / How to create a new it...
Power Automate
Answered

How to create a new item in a blank new list using power automate?

(0) ShareShare
ReportReport
Posted on by 240

Hi,

 

How to create first list item in a blank list? I have tried "create item "action but that doesn't solve my requirement. I have to check whether the list is empty or not, is yes then MS Flow should create a item.

"Send and http" action does not work on blank list . It throws error if the list is empty.

 

Please help!

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @PowerUser0,

     

    You could use a Get Items action and check the length of the value property. If the length is 0 it means it is empty.

     

    Below is an example of that approach.

    length(outputs('Get_items')?['body/value'])

     

    listisempty.png

     

  • PowerUser0 Profile Picture
    240 on at

    Hi @Expiscornovus  thanks for helping me out, but I also have to create a new item in the empty list. how to do that?

     

  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @PowerUser0,

     

    You can use a create item action for that. Put that in the if yes section.

     

    createitemaction.png

  • PowerUser0 Profile Picture
    240 on at

    Hi @Expiscornovus 

     I am getting this error

    Capture.PNG

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @PowerUser0,

     

    Can you share a screenshot of how you configured the Send an HTTP request to SharePoint action?

     

    And just to double check. The bit of checking if the list is empty and creating the item is now working? Because in your screenshot I don't see any get items or condition action 🙂

  • PowerUser0 Profile Picture
    240 on at

    hi @Expiscornovus 

    My list is empty for now, if the create new item is fixed the i will use the if condition.

    below is the screenshot of the send an http action. 

    Capture.PNG

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @PowerUser0,

     

    I see you are using a variable for the Item ID in URI field of the Send an HTTP request to SharePoint action. Which value is in there or where are you updating that value in your flow?

     

    I am assuming you want to use the id of the earlier created item, correct?

  • PowerUser0 Profile Picture
    240 on at

    Hi @Expiscornovus 

    oh yes I missed that 

  • PowerUser0 Profile Picture
    240 on at

    @Expiscornovus  I have to use the id of create item action?

     

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @PowerUser0,

     

    Yes, that is correct. You can use the id from the create item action.

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
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard