function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Georgy PeshkovGeorgy Peshkov 

Count unique records rollup on lookup value

Hello, everybody.

Does anybody know how to count all values with unique field values from an object A which is in lookup relationship with object B and write this value into the field of object B (in my case that's orders of distinct customers related to a reseller, thus I try to calculate how many customers of one reseller have at least one order)
I know that SFDC doesn't allow to make lookup fields for simple lookups (not master-details), so I managed to count those lookups with use of loop in flow+ Process builder to trigger it, but I don't know how to count records with unique field values.