Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Cannot add Custom Component to Entity

(0) ShareShare
ReportReport
Posted on by 156

Hello, I am new to PCF, I tried the following this example to create a custom component, it works. 

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/data-set-grid-control

 

I was able to package the component and deploy it to my environment 

1.png

 

i followed this tutorial to add the component to an entity but i could not see the custom component in Add Control 

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/add-custom-controls-to-a-field-or-entity

 

2.png3.png

 

I hope somebody can help me, thank you for reading. 

 

Best Regards, 

 

Minh Pham 

  • v-xida-msft Profile Picture
    on at
    Re: Cannot add Custom Component to Entity

    Hi @MinhPham96 ,

    Do you want to use CLI command to generate the web resource file?

     

    If you want to use CLI command to generate the web resource file, I afriad that there is no way to achieve your needs in PowerApps currently.

     

    As an alternative solution, you could consider update your Code Custom Component. Please consider refer to the following article:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/updating-existing-controls

     

    Best regards,

  • MinhPham96 Profile Picture
    156 on at
    Re: Cannot add Custom Component to Entity

    Dear @v-xida-msft ,

     

    I did a quick check and found out that the display name is defined in a web resource file. This web resource file is within the sample code which it uses the display name key from the Manifest to get the value from the web resource file 

    2019-11-29_11-34-43.png2019-11-29_11-33-57.png

    2019-11-29_09-30-22.png

     

    I just want to clarify a bit more, Is it possible for us to generate this file using some CLI command ? Or we have to create this file from scratch ? Thank you.

     

    Best Regards,

     

    Minh Pham 

  • v-xida-msft Profile Picture
    on at
    Re: Cannot add Custom Component to Entity

    Hi @MinhPham96 ,

    Actually, the displayname of the Custom Code Component is defined within the Manifest.Input.xml file for your code component as below:

    4.JPG

     

    If you want to change the DisplayName of your Custom Component, please update the corresponding Manifest.Input.xml, then update your Custom Component again.

     

    The Manifest.xml file of your custom component should be like below:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/data-set-grid-control#manifest

    Please consider update the Manifest.xml file on your side.

     

    Best regards,

  • MinhPham96 Profile Picture
    156 on at
    Re: Cannot add Custom Component to Entity

    Dear @v-xida-msft ,

     

    Thank you for your reply, but I already updated the situation in my second comment, can you have a look at it for me ? Thank you. 

     

    Best Regards,

     

    Minh Pham 

  • Verified answer
    v-xida-msft Profile Picture
    on at
    Re: Cannot add Custom Component to Entity

    HI @MinhPham96 ,

    Please consider select the Forms you want to add your Custom component within the Solution explorer, then edit it as below:

    1.JPG

    Then within the opening Entity Form, select the field where you want to add your Custom Component, then click "Change properties" option as below:

    2.JPG

    Then switch to "Controls" tab, click "Add control", check if the Custom Component is existed there.

     

    Also please make sure the Entity you are expanding is in same Solution as your imported Custom Conponent package.

     

    Best regards,

  • MinhPham96 Profile Picture
    156 on at
    Re: Cannot add Custom Component to Entity

    Ok, It was actually shown in the 'Add Control' list, but it was displayed in a different name. So can somebody help me where the name is defined ? Because the display name is different from the project name, as well as the namespace, I cannot remember where we defined this name. Thank you for reading.

     

     2019-11-29_09-30-22.png

     

    Best Regards, 

     

    Minh Pham

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard