Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Suggested answer

Creating a 1:1 relationship in Dataverse

(0) ShareShare
ReportReport
Posted on by 27
I have a table containing 40 questions and would like to distribute them into 3 separate tables.
All users need to answer Q1-18. Q19 is a choice column type, if a user selects Choice A, they should be presented with Questions 20-29, if they select Choice B, they should receive Questions 30-40. 
Could you kindly guide me on how to achieve this using a custom model-driven app?
  • LA-30040116-0 Profile Picture
    27 on at
    Creating a 1:1 relationship in Dataverse
    @Vahid Samimi 
    I value your input—thanks!

    Using PA, I think there will be a delay and might need refreshing the form could affect the user experience.
    I'm really interested in the classic workflow approach—would you mind showing me in detail on how to create a record in the lookup table (Q20-29 or Q30-40), link it to the main table, and also prevent record duplication?
  • Vahid Samimi Profile Picture
    41 on at
    Creating a 1:1 relationship in Dataverse
    Sorry for the misunderstanding. You can use a business rule just for hiding and showing, or set a value based on the existing value. But if you would like to create a record dynamically, you have to use Power Automate  or a Classic workflow
  • LA-30040116-0 Profile Picture
    27 on at
    Creating a 1:1 relationship in Dataverse
    I appreciate you taking the time to reply to my query.
    Would you mind sharing more details on how to create a record using the business rule.
     
    3.use business rule:
    When a user selects Choice A, create a record in Table A and link it to the Main Table.
    When a user selects Choice B, create a record in Table B and link it to the Main Table.
    Hide/show related questions dynamically based on the selection.
  • Suggested answer
    Vahid Samimi Profile Picture
    41 on at
    Creating a 1:1 relationship in Dataverse
    1. create 3 tables
    Main Table: Stores Q1-18 and Q19 (choice column).
    Table A: Stores Q20-29 (for users selecting Choice A).
    Table B: Stores Q30-40 (for users selecting Choice B).
    2. then Add a lookup column in the Main Table pointing to Table A.
    Add a lookup column in the Main Table pointing to Table B.
    Ensure each record in the Main Table has only one corresponding record in either Table A or Table B.
    3.use business rule:
    When a user selects Choice A, create a record in Table A and link it to the Main Table.
    When a user selects Choice B, create a record in Table B and link it to the Main Table.
    Hide/show related questions dynamically based on the selection.
  • LA-30040116-0 Profile Picture
    27 on at
    Creating a 1:1 relationship in Dataverse
    Thank you for your response!
    I’d prefer to use a custom Model-Driven App with a 1:1 relationship, if possible.
    I’ve just updated the post to clarify my question.
  • Suggested answer
    ankit_singhal Profile Picture
    553 Super User 2025 Season 1 on at
    Conditional Question Assignment in Model-Driven Apps
    You can use customer survey and apply the expression for hide/show the questions. When any user submit the customer survey then response will be save in dataverse automatically.
     
    If you want this in model driven, then create a form and created columns for your question answer. you can write the business rule for JavaScript for hide/show the column. It will trigger on the change of column value. 
     
     
    Note: Please Mark Verified, if it is useful for you. 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 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…

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 37

#2
LA-30040116-0 Profile Picture

LA-30040116-0 27

#3
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

Overall leaderboard

Featured topics