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 / Custom command not wor...
Power Apps
Unanswered

Custom command not working and not added to component library

(1) ShareShare
ReportReport
Posted on by

I have created a new custom command for the Appointment table in Dataverse, which should run JavaScript that opens a custom page in a modal. I have used the approach previously, where it has worked fine. 

 

However, when I click the button, nothing happens.

 

When I open the component library from the designer I can't see the command I created - only the ones I created a long time ago. 

 

Nielf_0-1705056220837.png


Moreover, when I run the Command Checker in the model-driven app, it also shows the error Component was not found in the library.

 

Nielf_0-1709014200483.png

 

 

Has anyone else experienced this - and perhaps found a solution or workaround?

Categories:
I have the same question (0)
  • Spinner Profile Picture
    107 on at

    I'm having the same issue. Unfortunately, I haven't as yet found a solution.

  • NielsSL Profile Picture
    on at

    I also still haven't found a solution - and I haven't bothered to reach out to Microsoft Support yet. 

  • Spinner Profile Picture
    107 on at

    I did end up raising a ticket and wasn't really getting anywhere with support, although their help did at least help me identify that the function was being called and there wasn't an issue with the code itself. Rather it had to be something to do with the custom page.

     

    Then came the breakthrough: with that information in mind, a search of this forum revealed an answer from @a33ik to the effect that the custom page needs to be added to the app itself and not just the solution (: https://powerusers.microsoft.com/t5/Microsoft-Dataverse/custom-page-does-not-open-in-model-driven-app/m-p/1647866/highlight/true#M21079

     

    Now the custom page dialog correctly opens. Simple fix, once you know it.

  • NielsSL Profile Picture
    on at

    Thanks for the follow-up, @Spinner

     

    After adding the custom page to the app, can you then see the custom command in the component library? 

  • Spinner Profile Picture
    107 on at

    No, it doesn't. I presume that's because it's based on JavaScript rather than Power FX.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard