how I can show the ID number from database (share point) in power app screen, as showing in attachment all time give me error
Solved! Go to Solution.
Something along the lines of this will give you the highest ID+1
First(
SortByColumns(YourDataSource, "YourIDField", Descending)
).YourIDField + 1
Unfortunately, the ID isn't assigned by the system until after a new item is submitted. So you can't show it on creation of a new item. You can show it when editing an existing item.
So I can show the previous ID then +1,
or is there any way?
You should be able to show the previous highest ID +1. But that won't be guaranteed to be the right ID. There are a couple cases where it would show the wrong value.
Could you support me for writing the code to show the highest ID+1
Something along the lines of this will give you the highest ID+1
First(
SortByColumns(YourDataSource, "YourIDField", Descending)
).YourIDField + 1
@timl 's code should do it. But remember that is based on the current highest ID and may or may not represent the next ID to be assigned.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
194 | |
69 | |
49 | |
47 | |
19 |
User | Count |
---|---|
248 | |
126 | |
84 | |
75 | |
74 |