问题
So I have a Dynamics 365 solution with a portal. I have created a custom entity to hold records relating to events. What I need to do is provide a way for users to log into the portal and register their interest for these events i.e associate their contact record with the relevant event record.
I have seen that in CRM there is the option to associate the current user to an event when they create one through an insert entity form in the portal, but I can't figure out how to do it from a read-only entity form.
回答1:
You have to use & configure Entity Form Metadata in entity form, so that the data can be pre-populated including current login portal user as contact in each record.
https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-form/entity-form-metadata/
来源:https://stackoverflow.com/questions/44757155/trying-to-associate-a-dynamics-portal-user-with-a-dynamics-entity-record-through