Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Entity form Metadata is not working

Posted on by Microsoft Employee

Hi Experts,

Rendering Lookup as Multiple Choice using the Entity Form metadata is Not working for the Powerapps portal. The Portal does not reflect the changes done using entity form metadata.

Could anyone please help me out

Thanks

  • Tejasvi Profile Picture
    Tejasvi 15 on at
    RE: Entity form Metadata is not working

    Hi,

    Were you able to solve this problem? I am facing the same issue

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity form Metadata is not working

    Hi Experts,

    I have tried adding a Jquery plugin to achieve multiple selection in the lookup field as shown below.

    multiple-dropdwn.png

    I am able to select multiple organizations in the form. But after form submission, in the entity list only the first selected option from the dropdown gets added.

    Could anyone please help me out to fix this issue?

    Thanks in advance

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity form Metadata is not working

    Hi Leo,

    Thank you for the reply. The requirement is to bind the values from organization entity list displayed in one web page, as a dropdown with multiple selection in another web page to allow users to select multiple organizations. As shown below, I have an Organization web page which displays the entity list from a custom entity called "Organization".

    1273.Org.png

    I have used lookup field for Organization entity list and have rendered it as a dropdown using the EntityForm Metadata in a web page called Add Account in the "Contact" entity as shown below. 

    addacc.png

    I have added the lookup field because, If I add a new Organization or if I make any changes to the entity list in the Organization web page, it should be updated in the dropdown list in the Add account Page. I do not want to use static values in the dropdown. But the requirement is to allow users to select more than one organization from the dropdown. Therefore I need a dropdown with multi select option so that users can be able to select multiple Organization.

    Any help to achieve the multiple selection in the dropdown would be greatly appreciated.

    Thanks

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Entity form Metadata is not working

    Hi partner,

    Here are the resource.

    How to create multiple select field with custom options with C# code.

    pastedimage1591579804736v1.png

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/multi-select-picklist#create-a-multi-select-picklist-with-code

    But it really needs a lot of work, you could try it with C# and you could also share your complete requirement so that we could help you find another way.

    Regards,

    Leo

  • Chris4300 Profile Picture
    Chris4300 145 on at
    RE: Entity form Metadata is not working

    Hello,

    I misunderstood your ask. In this case, you would have to go with Leo's suggestion.

    Regards,

    Chris

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity form Metadata is not working

    Hi Chris,

    Thank you for the reply. But what I want here is to bind the values in the dropdown from another entity list. That is the reason why I have used the lookup field. Any changes in the entity list, for example, if a new value is added to the entity list, it should be added in the dropdown. So I need a multiple choice field to select multiple values inside the dropdown. Is there any ways for achieving this?

    Thanks

  • Suggested answer
    Chris4300 Profile Picture
    Chris4300 145 on at
    RE: Entity form Metadata is not working

    Hello,

    I do not think that you need to customize anything for this requirement. You should be able to achieve this out of the box by using the below steps:

    1.Lets stay that you want to your portal users to answer a question: "Where did you go on vacation this year?". Let us assume that you have the below multiple choices:

    a. Italy

    b. Spain

    c. Germany

    2. Next you need to add a new tab to the entity whose form you want to display on the portal (In this scenario I will consider a custom entity). I create a new tab called:   "Where did you go on vacation this year?"

    pastedimage1591336791779v1.png

    3. Next, you would create three new fields called Italy, Spain and Germany of type 'Two Options':

    pastedimage1591336862056v2.png

    4. Drag these three fields into the newly created tab:

    pastedimage1591336964170v3.png

    5. Save and publish your customizations

    6. Next you would create an entity form and on the Tab name to be displayed on the form select : "Where did you go on vacation this year?"

    pastedimage1591337101644v5.png

    7. Next you would add the three attributes: Italy, Spain and Germany to the entity form metadata with the control style as 'Multiple Choice":

    8. Add the entity form to a webpage

    9. Clear the portal cache

    10. Navigate to the web page

    pastedimage1591337428154v6.png

    11. It should give you an option to select multiple options for your question

    Regards,

    Chris

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity form Metadata is not working

    Hi 

    Thank you for the reply. Since I am new to the Powerapps Portal, I don't have any idea on creating plug-in or console apps for the Portal. I would be grateful if you could share any documents or ideas for creating plug-in or console apps for the Portal.

    Thank you

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Entity form Metadata is not working

    Hi partner,

    Sorry that it is not possible by default in portal.

    "Multiple Chooise" is not supported for lookup field, since we are using D365 entity forms in portal, so no matter what form a Lookup field becomes, it is a LOOKUP field and can only store one record.

    If you want to show records in multiple select field, I recommend you to create a plug-in or console app with C# to add records as values into multiple select fields dynamically.

    About how to control multiple select field, please refer to this doc.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/multi-select-picklist

    Regards,

    Leo

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans