cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Jun_Bin
Level: Powered On

Retrieve ID from a SharePoint List but receive different result

Hi,

 

I would like to get the last ID from one SharePoint Online List. I tried to create two different application to run the same code to get the last ID. But obviously it shows different results. 

 

May I know what is the problem? is it on PowerApps or SharePoint Online List.

 

Best Regards,

Jun Bichrome_EMSovYO9Ew.pngchrome_lLVtyKYuUA.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Retrieve ID from a SharePoint List but receive different result

Hi @Jun_Bin,

 

I think the issue should be on the SharePoint list side.

Please take a check to see if the last item is still there, or if there are any new item added into SharePoint list.

The last () function will always return the newest added item in the list.

Similar function should be:

First(Sort(Patchtesting,ID,Descending)).ID

Best regards,

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Retrieve ID from a SharePoint List but receive different result

Hi @Jun_Bin,

 

I think the issue should be on the SharePoint list side.

Please take a check to see if the last item is still there, or if there are any new item added into SharePoint list.

The last () function will always return the newest added item in the list.

Similar function should be:

First(Sort(Patchtesting,ID,Descending)).ID

Best regards,

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 181 members 5,137 guests
Please welcome our newest community members: