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 / Running Number or Uniq...
Power Apps
Unanswered

Running Number or Unique Number

(0) ShareShare
ReportReport
Posted on by 48

Hi Team,

 

I have one more requirement which is something like this. There is one text input in which person will enter the opportunity id suppose you have entered one opportunity id then there is one more text input in which it will show the unique number. Like for opportunity id A - Unique id should be INOPP_Division(which should be dynamic)_YY(this also be dynamic)_0001, and goes on. i don't know how to do this. Attaching screenshot for everyone's reference. Please help me for this. Thanks in advance.

Screenshot 2024-03-21 114809.png
Categories:
I have the same question (0)
  • scalca Profile Picture
    on at

    Hi
    probably you'll have to provide a bit more details
    let's try to figure this out.

    the default property can start with this
    $"INOPP_{DropdownControlDivision.SelectedText.Value}_{yourDinamicControl.Value}_{Text(Sum(Value(If(!IsEmpty(YourOpptiesSource),Index(Last(YourOpptiesSource).uniqueID,"_",4).Value,"0")),1),"0000")}"

     

    I don't know where do you get the YY dynamic value from

    I don't know your datasource where you store the opportunities

    what I'm doing here is to get the latest record in your Oppties datasource if there is any
    if there is no record I'll take "0" 
    increment by 1 convert to Text and format this into desired output which is "0000"

    there you go

  • noob_power_apps Profile Picture
    48 on at

    Hi Scala,

     

    Thanks for your reply, let me clear out the things more - 

     

    for YY i have date pickers named as Start Date from there i can take YY. 

    The data source is sharepoint list in which all my data is going to store. 

    in the text input of my unique id i have wirtten this formula and i am stuck little bit, I am sharing my code here which i have written in default - 

    Concatenate("INOPP_",Text(ComboBox6_1.Selected.Value),"_",Right('Start Date_1'.SelectedDate,2))
    it is giving me my first few outputs but what i want now is the moment people will start adding opportunity so it will start taking the sl no of the opportunity like 1 will become 0001 and so on. Let me know what else i can modify in my code. Thanks in advance.
  • noob_power_apps Profile Picture
    48 on at

    Combo6_1 is for division and start date is my date picker which helps me in getting last 2 numbers.

  • scalca Profile Picture
    on at

    if you're just getting the sharepoint id for the last part of the unique id and you want to format it then use this
    Text(selectedItem.ID, "0000")
    with the Id you need to get the item first in order to identify which Id you have to pick
    when the user enters the opptId, how do you get the record from the sharepoint list ? 


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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard