Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Associate records

Posted on by 265

I have two entities

Account and Bookings: 1:N relationship

Account can have multiple bookings. I have billing facility field in both the entities. If both these fields in two entities have same value then these records should be associated. that means if i have 12 in account billing facility field and also having the same value in multiple booking records, then all the bookings should be associated to that account. all the bookings records with same value should be visible in bookings subgrid in account.

How can i do it?

Javascript-workflows or custom workflows or plugins?

*This post is locked for comments

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Associate records

    Hello,

    Since the booking are automatically created, you can use a plugin on prevalcreate of the booking entity and will associate it to the account having the same billing facility.

  • on-premise Profile Picture
    on-premise 265 on at
    RE: Associate records

    the data in the bookings will be created automatically from the integration with application.

    accounts will be created by the user manually. when the user creates account, it should match the billing facility Id.

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Associate records

    hi..

    to populate values in child record you can use anything JavaScript, custom workflow activity or plugin.. Each method has pros and cons.

    When using JavaScript - it will be executed only on field change and client side coding.. child record will not be updated if this field is updated other than UI.

    When using workflow, you have option to run workflow on demand for old records, and can be run asynchronous. Plugin also be used as asyn or when field is changed, only you cannot run on demand on old records.

    to visible on subgrid, you need to add those fields in views used in sub grid.

    hope this will help..

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans