cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hagru
Advocate II
Advocate II

Add lookup to Account in registration form

Hello!

 

I was wondering if it is possible to edit the registration form to my Power Pages application?

 

hagru_0-1713774491090.png

 

I would like to add a fifth field to the standard login form, which is a lookup to the Account table. That way, the user is required to connect to an existing Account when registering their user in the Power Pages app.

1 ACCEPTED SOLUTION

Accepted Solutions
Fubar
Multi Super User
Multi Super User

As per the other posts not possible on that registration page.

 

One other alternative, and it may now depend on what template you started with (as at least one of the new ones is now using step form in the middle of the profile rather than the profile itself), would be to add the Lookup for the persons Account to the Profile page (the profile uses - if using the older Dynamics 365 templates or newer ones Portal Contact form or Portal Contact Enhanced form on the Contact table).  There is also a Site Setting which you can set that will not allow the user to progress until they have completed the Profile, by default it is set to false (Profile/ForceSignUp https://learn.microsoft.com/en-us/power-pages/configure/configure-site-settings#site-settings).

 

View solution in original post

9 REPLIES 9

Hi @hagru,

 

unfortunately not really no. You can use some other techniques but unfortunately it's not possible to submit a fifth field with that form.

 

I guess your page is internal only? Couldn't you use Azure to login?

From GDPR perspective it would still be bad practice as everybody could just connect with another contact and do things not intended for.



--------------------------------------------------------------------------------------

Hope that helps.

If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

OliverRodrigues
Most Valuable Professional
Most Valuable Professional

Microsoft recommends using Azure AD B2C as your authentication method.

But you would face the same issue, a few alternatives I can think of:

  • Use custom policies in B2C to show the accounts (very complex)
  • Leave a text field in B2C so user add the Account that they represent, and a logic in the back-end to match the Account automatically or manually
  • Create a Registration form using Multistep Form that will trigger the invitation process for the user



If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

hagru
Advocate II
Advocate II

Hello @OliverRodrigues and @Lucas001 

 

The reason why I am asking is because I am making a PowerPages app to handle a meeting conference, where a bunch of people from different companies register, sends their wishes of which other companies they want to meet, then meetings are generated ahead of the event.

 

Each company can have multiple contacts registering for the event, therefore, I want each contact to be tied to one company, then they can see the wishes and meetings related to the company (account) they are connected with.

 

I can very easily let the contact select an account in their profile page by editing the Profile Web Form under the contact table, which is the one displayed in the profile page in Power Pages. This is the solution I am going with as of now, which in all fairness works, but I would prefer if when the user registers, that their account is set during the registration process, and removing the ability to change it in the profile page. Otherwise, the user would be able to send wishes for other companies just by changing the account in their profile page.

 

Yes, they would be able to do that with both options, but the best would be if it was a set and forget kind of option. The audience is also business people, who are interested in doing business with each other, and I have some faith that there will not be any abuse either way.

 

In terms of GDPR, there is not much they will be able to get out of the portal, other than a list of the participating companies.

OliverRodrigues
Most Valuable Professional
Most Valuable Professional

I think that the Registration Process + Approval Process would be ideal for you here.

You should restrict access until there has been a verified process in the back-end and the user belongs to that organisation.




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

Hi @OliverRodrigues!

 

Not sure how to really set up something like that. I don't have an overview of the people attending, but I do have a list of the companies attending. This is why I want the user to be able to select which of the attending companies they are participating for when registering their account, so that they can see the relevant information right away.

 

A selection in the registration form would therefor be ideal in my case.

OliverRodrigues
Most Valuable Professional
Most Valuable Professional

I will put as bullet points how the solution would be in my view, each heading will be a technical product/deliverable on its own:

 

  • Portal Roles
    • I would create a Portal role for "validated users" and associate the permissions with this
  • Registration Form
    • A Multistep Form (or Baisc Form if simple) that will let user add their details, including company details
    • Users shou
  • Approval Process
    • in the back-end, you should probably have a Model-Driven App that back-end users will have access to the data
    • users should have a view that would approve/validate that users are associated with that company
    • a workflow/cloud flow should trigger at this point that will assign the user the "validated role"
    • this could also e-mail the user confirming that their access has been elevated
    • users should now have access to their data on the portal

I appreciate that this solution is a bit more complex than your original, but I think it would be a more solid process




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP


Oliver Rodrigues


 

Fubar
Multi Super User
Multi Super User

As per the other posts not possible on that registration page.

 

One other alternative, and it may now depend on what template you started with (as at least one of the new ones is now using step form in the middle of the profile rather than the profile itself), would be to add the Lookup for the persons Account to the Profile page (the profile uses - if using the older Dynamics 365 templates or newer ones Portal Contact form or Portal Contact Enhanced form on the Contact table).  There is also a Site Setting which you can set that will not allow the user to progress until they have completed the Profile, by default it is set to false (Profile/ForceSignUp https://learn.microsoft.com/en-us/power-pages/configure/configure-site-settings#site-settings).

 

Hi @Fubar 

 

That setting is very useful, and will definitely help assuring the user selects an account in the profile settings.

I am fairly certain I used the Starter Layout 4 as a starting template:

hagru_0-1713940480989.png

 

Adding an account lookup to the profile page is the solution I have gone for as of right now:

 

hagru_2-1713940958389.png

 

 

It will do the job, but there is a potential issues where users can change to another company and send wishes or see their meetings. In all fairness, there's not much harm that can be done, but the most secure way would be to have the user select a company when creating their account, in the registration form:

 

hagru_1-1713940844659.png

 

 

Hey @OliverRodrigues 

 

I appreciate the time and suggestion!

As the pages and lists display data related to the account the contact is connected to, which is standard functionality, I feel like this is sufficient enough. There's no way for the users to view anything on the page without registering an account and select a company in their profile page, because they get assigned a role which is necessary to view the data.

 

Preferably the user should not be able to change the company they are related to after registering, which is why I would like it to be a part of the registration form. There is no way for me or the system to know who is related to which company before they register, and there is no way for me to control this after registration either, so a flow connecting the user to a company on creation seems impossible.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results |Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 1: Community MembersSolutionsSuper UsersSolutionsPower Pages @Inogic  1   @ragavanrajan  2 @aofosu  1 @Jcook  1Open  @OliverRodrigues  1Open  @Lucas001  1Open Open    Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 2: Community MembersSolutionsSuper UsersSolutionsPower Pages @taraubianca25  2 @EmadBeshai  2 @ALP2  2@Fubar 2 @ekluth1  2@ragavanrajan 1 @mandela  1@OliverRodrigues 1 @Ajlan  1Open   @elishafxx  1    @TA_Jeremy  1    @helio1981  1       Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower PagesInogic2@EmadBeshai 6Ajlan1@ragavanrajan 4CraigWarnholtz1@Fubar 4  @Jcook 3  @OliverRodrigues2   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower PagesHenryed071Fubar3Inogic1OliverRodrigues2JacoMathew1EmadBeshai2faruk11  TA_Jeremy1   shubhambhangale1   doug-ppc1   hubjes1  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

  On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (457)