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 conditio...
Power Automate
Answered

How to create conditional steps in adding excel in SP into SP list

(0) ShareShare
ReportReport
Posted on by 20

Hey All - i need an assistance in how I can transfer the excel that currently created in the SP via PowerBI Paginated Reports into SP list. I'd like to create a condition where if there's an existing row of data created it will trigger 'update' if not it will trigger 'create item'.

 

I am unable to progress due to the condition below is not correct : 

jhauw_0-1684306152615.png

Hope to get any suggestion on how to make the condition above working, thank you in advance.

Categories:
  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @jhauw 

     

    Do you want to update excel data if the data is already in the SharePoint list, create new item if the excel data is not in the SharePoint list?

    If so, you need a unique identifier column firstly, which helps to identify every item/record.

    Then using the empty function to check if the item is present in the list or not.

     

    A simple demo could be found in the following link:

    Solved: Flow Update/Create Error - Power Platform Community (microsoft.com)

    Hope it helps.

     

    Best regards,

    Sylvia

  • jhauw Profile Picture
    20 on at

    Hi Sylvia - yes that's correct.

     

    I tried to follow the sample in the link but it error out on this stage :

     

    jhauw_0-1684310311006.pngjhauw_1-1684310351004.png

    Any idea how to fix this? TIA

  • v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @jhauw 

     

    Please kindly check the correct internal column name of Telstra User Id in your SharePoint list.

    Here is the method:
    1. Clicking on the Settings > List settings:

    vpeijunzmsft_0-1684310641912.png

    2. Choosing and clicking on the column, the correct internal column name that should be used in flows will show in the last part of URL:

    vpeijunzmsft_1-1684310771169.png

    For example, I have a column named "start date", after checking the internal column name, I need to put:

    startdate eq 'xxx'

    in filter query.

     

    Best regards,

    Sylvia

  • jhauw Profile Picture
    20 on at

    Hi Sylvia - thank you that fix the filtering issue & the run sucessfully - however it the value from excel didn't get through to the SP List 🤔

     

    It goes on updating this step but seems didn't generate the value into the SP List : 

    jhauw_0-1684311697322.png

    Any idea as to why ? I have the admin of the SP so there should be any issue from that point.

  • v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @jhauw 

     

    If you want to create item in SharePoint list, it means the item isn't in your list in the past, you have to fill all the data from excel to SP list (you have chosen the dynamic content of Title in SP list).

    Also, since the Telstra User Id is the unique identified id, please make sure to that column has the data.

     

    Best regards,

    Sylvia

  • jhauw Profile Picture
    20 on at

    Hi Sylvia - thanks - I can confirm the the Telstra User Id column has data (is mandatory) - however i still  don't understand what you mean by this "If you want to create item in SharePoint list, it means the item isn't in your list in the past, you have to fill all the data from excel to SP list (you have chosen the dynamic content of Title in SP list)."

    This is brand new SP list and it never has any same data previously. Do you mind to elaborate on that?

  • v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @jhauw 

     

    Could you please show a screenshot of the whole flow if possible? 

    It would be also great if you could share the result you get, which will help to check your issue.

     

    Best regards,

    Sylvia

  • jhauw Profile Picture
    20 on at

    Hi Sylvia - this morning I am able to figure it out where the issues is - so thank you 😃

     

    I'd like to add another condition to check if there has been changing of Team Leader from one person to another would this be the good place to add those condition? 

    jhauw_0-1684380270299.png

     

  • jhauw Profile Picture
    20 on at

    Sylvia - all fine - thank you for assisting - i will mark this thread as accept as solution 😉

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 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard