Activity Forums Salesforce® Discussions What if you need roll-ups on a lookup relationship?

  • Udit

    Member
    August 4, 2020 at 7:10 PM

    We can use trigger to achieve the scenario.

  • Pooja

    Member
    August 4, 2020 at 7:31 PM

    If <strong id="ext-gen20" style="font-family: inherit; font-size: inherit;">you do not have a master detail, then you will need to use a trigger to perform the rollup for you.
    <div id="ext-gen19"><strong id="ext-gen20">And apex triggers will only work when you update the records. So in my opinion, you cannot get the rolled up values without updating the records atleast once.

    </div>

Log In to reply.

Popular Salesforce Blogs

AI in Salesforce

Transform businesses with the power of Artificial Intelligence leveraged through Salesforce Einstein

Blog in

Artificial Intelligence is powering next-generation customer experiences with smart predictions, intelligent recommendations, timely automation and much more. Gartner predicts that by 2020, a staggering 85% of…

Popular Salesforce Videos