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 / User Defined Functions...
Power Apps
Answered

User Defined Functions not working

(0) ShareShare
ReportReport
Posted on by 1,123
I've already enabled User Defined Functions on my app.
 
 
I see below errors on my Formulas property
 
'Type' is an unknown or unsupported function.

Name isn't valid. 'Text' isn't recognized.

Unknown type LibraryType.
Here is my simple code taken from MS Docs. What is going wrong here?
 
Library = [
    {
        Title: "The Hobbit",
        Author: "J. R. R. Tolkien",
        Genre: "Fiction"
    },
    {
        Title: "Oxford English Dictionary",
        Author: "Oxford University",
        Genre: "Reference"
    }
];
LibraryType := Type( [ { Title: Text, Author: Text, Genre: Text } ] );
LibraryGenre( SelectedGenre: Text ): LibraryType = Filter( Library, Genre = SelectedGenre );
 
Thanks,
Ramesh Mukka
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @rameshmukka,

    Yes, to use the Type() function and define custom data structures in App, you need to enable the User-defined types feature.

    How to enable it:

    #1.Open your app.

    #2. Go to Settings > Upcoming features > Experimental (or Preview)

    #3.Turn on: User-defined types

     

    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!

     

  • Suggested answer
    Pstork1 Profile Picture
    69,556 Most Valuable Professional on at
    There is another switch you need to set in the Experimental section of the Settings called User-defined types.  It doesn't work with just the User Defined Functions when using Type()

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard