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

Community site session details

Session Id : IhcMI9iac0U6y3w2u+tGA2
Power Apps - Building Power Apps
Answered

Convert a text(input) type to record type?

Like (0) ShareShare
ReportReport
Posted on 13 Nov 2021 18:18:17 by 9

Hi everybody,

 

I haven't seen a solution to this specific question. 

 

My scenario:

DennisTheMenace_0-1636825481259.png

A freight is a collection that contains a maximum of 2 items. Users can add items to the freight and can order the freight.

The collection 'Freight' contains: 

- Items: Item_dropdown_3.Selected.Value; (The item dropdown)
- CubicM: CubicM.Text; (The Cubic M text input that can only be a number)
- Bunker: Bunker_dropdown_3.Selected.Title (The bunker dropdown)

 

When the user presses the order button, the collection and other items get patched to a sharepoint list.

I use First(Freight).Item to specify the first item.

And I use First(Freight).CubicM to specify the amount of Cubic meters for the first item.

 

The problem:

The CubicM  (cubic meters) column in the sharepoint list is a Record type. But the CubicM column in my collection is a Text type

Is there any way to convert First(Freight).CubicM to a Record? Or change the CubicM: CubicM.Text in the collection to a Record type?

 

 

Thanks a lot

  • DennisTheMenace Profile Picture
    9 on 17 Nov 2021 at 17:23:39
    Re: Convert a text(input) type to record type?

    Thank you for your solution.

     

    Value(TextBoxName.text) seems to be doing the trick. I now get a Number type instead of a Text type from the text input field.

  • Verified answer
    WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 13 Nov 2021 at 23:18:33
    Re: Convert a text(input) type to record type?

    Hi @DennisTheMenace ,

    I think I may have asked the question the wrong way - what type of field is it in SharePoint -several different types can be a record. Can you please share a screenshot of you field definition in List Settings.

    To answer your other question - yes - that is by far the best path. Numbers are displayed in Text inputs are are simply referred to as Value(TextBoxName.Text)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • DennisTheMenace Profile Picture
    9 on 13 Nov 2021 at 22:41:51
    Re: Convert a text(input) type to record type?

    Hi there!

    CubicM in the sharepoint list needs to be a record type instead of text. Which has to do with the "" when conferting it to an .csv file. However, CubicM in the collection Freight is a text type (I think because I use a Textinput). It's a simple Textinput that has been set to numeric (Aantal translates to number).

    DennisTheMenace_0-1636842583883.png

     

    When adding it to the collection I use: CubicM: CubicM.Text; When I press on CubicM.Text I get the following:

    DennisTheMenace_1-1636843108827.png

     

    So maybe a different sollution to my problem: is there a way use the Textinput, setting it to number and have a data type: number instead of text? 

     

     

  • WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 13 Nov 2021 at 21:17:45
    Re: Convert a text(input) type to record type?

    Hi @DennisTheMenace ,

    What sort of Record type is 'Cubic M'  and why is it this 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete