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 / Convert a text(input) ...
Power Apps
Answered

Convert a text(input) type to record type?

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,312 Most Valuable Professional on at

    Hi @DennisTheMenace ,

    What sort of Record type is 'Cubic M'  and why is it this type?

  • DennisTheMenace Profile Picture
    9 on at

    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? 

     

     

  • Verified answer
    WarrenBelz Profile Picture
    156,312 Most Valuable Professional on at

    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 at

    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.

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 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard