Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Best way to populate a fields value

(0) ShareShare
ReportReport
Posted on by

I have created a section on our contact form that summarizes a contact's product level relationship with our company. Each field within that section is a two option field being either yes or no. I am wanting to create a way for the system to automatically determine the correct value based on the products and investments the contact has. So, the three entities involved are contacts, policies, and investments. Contacts have a 1:N to policies and investments.

My current idea was to use rollup fields (would count the number of policies based on the correct product, product type, and status) and workflows (assigned the correct value). I have successful created the rollup fields. The workflow option does not appear to be valid since workflows cannot run when a rollup field changes (do not have another field that would "know" when to run the workflow on a change). So, I wanted investigated a business rule; however, that can only run on a change, load, or save. I am wanting something to run when the rollup field changes.

I am a fairly new admin, so I want to: keep the solution simple and avoid custom code. Any ideas on how to make this work?

*This post is locked for comments

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Best way to populate a fields value

    Hi Carter,

    How did you go with this? Did the above suggestion worked? If yes then please close the thread by marking the suggestion as verified. This will help other as well looking for the similar issue.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Best way to populate a fields value

    Hi,

    Yes, you can configure a workflow to run it on demand and then use Bulk workflow execution tool within Xrm Toolbox to execute it for all required records.

    www.powerobjects.com/.../how-to-bulk-update-crm-records-using-the-bulk-workflow-execution-tool

    Hope this helps.

  • RE: Best way to populate a fields value

    Ravi,

    That is a good idea! However, our CRM environment was implemented over 6 years ago. So, this method would not work for existing records until a change occurs. The goal was to have an up to date product summarize for all 100,000+ contacts within our CRM when we roll this out. Is there a way to force the suggested workflow to run over all records? Then, only run when a change/update occurs.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Best way to populate a fields value

    Hi,

    Unfortunately you can't get a trigger of rollup change in workflow, BR or any other component. If you need to trigger something on change of your rollup, you need "Not" to use rollup up field, instead use normal field with plugins to calculate the count.

    However with that said, I don't think you need all this (I may be wrong). Have you explored the workflow option to achieve/ update these fields? I think on create/update of the child entity records i.e. policies, investment, you can update the fields on contact record.

    Hope this helps.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans