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

Question About Chatter Within Apex (no code, just question)

I set up a trigger that has a user automatically follow the record based on a user-lookup-field on the record.


I often do batch updates of all of my accounts.


What happens if a user is already following 500 records? Will the record still update, but not add the follower? Will the record refuse to update? Will it stop the batch update (using APEX Data Loader)?


Can I use APEX to test the number of records that a user is following, and then wrap my code in an if-statement that tests that the number is less than 500?