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 / Can I convert a string...
Power Apps
Answered

Can I convert a string (Autonumber column) to a whole number?

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I'm trying to get around a delegation issue by running a clear collect that brings data from the table in batches.

 

 We have an autonumber ID column in the data, but this is stored as text/string, rather than a whole number.

 

If I try to, for example, find the max value of this column, it's not delegable because it's stored as text.

 

I want to create a second column that has the ID stored as a number. Is this possible? 

 

Thanks,

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,785 Super User 2026 Season 1 on at

    Hello @KingBrad,

     

    Please find the screen shot below

     

    For AutoNumber you can see the Text with Small image as ABC, so its confirmed that we can use only text field not a whole number

     

    rampprakash_0-1633344098296.png

     

    if you want to use an Whole Number field for AutoNumber you can Create a new Field with Text (AutoNumber) and Copy the Number to Whole Number field and Use it.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • KingBrad Profile Picture
    2 on at

    Thanks for the help, but I still don't understand, how do I copy the number to the whole number field?

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @KingBrad ,

     

    You could try this formula to get the max number of your auto column.

     

    First(SortByColumns(TestL15,"crba2_auto",Descending)).Auto

     

    // crba2_auto is a autonumber column. 

    vxiaochenmsft_0-1633404677819.png

    vxiaochenmsft_1-1633404827568.png

     

     

    If you want to create a number column to copy the values .

    You could try the formula :

     

    ForAll(AddColumns(Sequence(Value(First(SortByColumns(TestL15,"crba2_auto",Descending)).Auto)),"CC",Text(Value)) As A,Patch(TestL15,LookUp(TestL15,Auto=A.CC),{Number:A.Value}))

     

     

     

    In addition , if you don't want to use formulas in canvas , you could try the dataflow .

     

    Best Regards,

    Wearsky

  • AlexScharpé Profile Picture
    35 on at

    Hi,

    Could you explain how you achieve the last part of your solution (Copy the Number to Whole Number field and Use it) ?

    Thanks!

  • Bamwich Profile Picture
    2 on at

    I second this problem. Using the AutoNumber column to tack ID's is really difficult as it's borderline impossible to use in any If statements and other various functions because it cannot be compared to any other file type.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard