Display contracts on the Account and Contact forms

Christoffer Utterborn
Christoffer Utterborn
  • Updated

Add a Nested Subgrid to Display Contracts

To display related Oneflow contracts under their associated Opportunities on an Account form, you can add a nested subgrid.

  1. In Dynamics 365, click the gear icon in the top-right corner, then select Advanced Settings.

    Dynamics 365 Advanced Settings Menu
  2. From the settings menu, navigate to Customizations > Customize the System.

    Customize the System
  3. In the solution explorer, navigate to Entities > Account > Forms, and open the main form you wish to modify.

    Select Account Form
  4. Click the Insert tab and select Sub-Grid to add a new section for Opportunities.

    Insert Subgrid
  5. In the subgrid properties, set the Name and Label (e.g., "Opportunities"). Under Data Source, select Only Related Records, choose the Opportunities entity, and select a Default View.

    Subgrid Properties
  6. Switch to the Controls tab and click Add Control....

    Add Control
  7. Select Editable Grid from the list and click Add.

    Select Editable Grid
  8. Enable the Editable Grid control for Web and Tablet. Then, click the pencil icon next to the Nested grid view property to configure it.

    Configure Nested Grid
  9. In the pop-up, set the Nested Grid Entity to Oneflow Contracts and the Nested Grid View to the desired view.

    Nested Grid Properties
  10. Click the pencil icon next to the Nested grid parent ID property.

    Edit Parent ID
  11. Bind the nested grid to the parent by selecting opportunityid (Opportunity). This links the contract records to their parent opportunity.

    Bind Parent ID
  12. Click OK on all open dialogs to confirm your settings.
  13. Finally, click Save and then Publish to apply the changes to the form.

    Save and Publish Form

View the subgrid

You should now be able to see the nested grid on your Account form.

Clicking the arrow next to an Opportunity will expand the row to show all associated Oneflow contracts.

Final Nested Subgrid View

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request