Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - AI Builder
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:
  • Verified answer
    v-albai-msft Profile Picture
    on at
    Re: Problems getting IDs of a SharePoint list from PowerApps

    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

  • v-albai-msft Profile Picture
    on at
    Re: Problems getting IDs of a SharePoint list from PowerApps

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1