web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problems getting IDs o...
Power Apps
Unanswered

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard