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 Apps / Problems getting IDs o...
Power Apps
Answered

Problems getting IDs of a SharePoint list from PowerApps

(0) ShareShare
ReportReport
Posted on by 31
Good evening community, I am having problems obtaining a SharePoint ID from PowerApps, I am using the LookUp formula, I am using this formula within a flow that requires an ID to update a SharePoint element, when I go to see the result of the Flow , the "ID = 0", what could be the problem? Value(LookUp(VencLocal;EanSH=confean.Text && sucursal12=SucursalSH && FechaSH=Text(DatePicker2;"[$-es-ES]dd/mm/yyyy";"es-ES");ID))
Categories:
I have the same question (0)
  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @maxiq_2k ,

    Please pay attention and check below things:

    1. Is SucursalSH the name of your TextInput control? If yes, you should use sucursal12=SucursalSH.Text in your formula.

    2. What’s the column type of FechaSH in your SP ? If this is a Date column, you should use this as the condition(remember to add  SelectedDate for the Date Picker control):

    Text(FechaSH;"[$-es-ES]dd/mm/yyyy";"es-ES")=Text(DatePicker2.SelectedDate;"[$-es-ES]dd/mm/yyyy";"es-ES"); 

    You can add some labels and set them to First(VencLocal).FechaSH and Text(DatePicker2.SelectedDate;"[$-es-ES]dd/mm/yyyy";"es-ES") to compare their date format. 

    For example, my SharePoint has a Date column called "date1", this is its default result format(with time):

    v-albai-msft_0-1618203611733.png

    This is the result of my date picker control:

    v-albai-msft_1-1618203664567.png

     

    After change(this time you can lookup a record and get its ID):

    v-albai-msft_2-1618203780968.png

    v-albai-msft_3-1618203831771.png

     

    So on your side, you can try this:

    LookUp(VencLocal;
    EanSH=confean.Text &&
    sucursal12=SucursalSH.Text &&
    Text(FechaSH;"[$-es-ES]dd/mm/yyyy";"es-ES")=Text(DatePicker2.SelectedDate;"[$-es-ES]dd/mm/yyyy";"es-ES");
    ID)

     Best regards,

    Allen

  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @maxiq_2k ,

    Sorry for delay. I don't know why your reply disappear.

    First let me explain why you receive this message:

    "Advertencia de delegación" is just a Delegation warning message, not an error. This is because DateTime and Date values in SharePoint are still not yet delegable when using Lookup(). So you will get that warning and the query will only work on the first number of records in your Advanced settings (500-2000).

    v-albai-msft_0-1618975044536.png

     

    If the number of list items in your list is more than 2000, you can get workarounds from this article.

    Power Apps Delegation – SharePoint – Practical Power Apps

     

    Besides, from your screenshot, I think you should use "DatePicker2.SelectedDate"  instead of "DatePicker2" inside your formula:

    Text(FechaSH;"[$-es-ES]dd/mm/yyyy";"es-ES")=Text(DatePicker2.SelectedDate;"[$-es-ES]dd/mm/yyyy";"es-ES");

    Best regards,

    Allen

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard