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

Setting the Chatter Profile Picture for 30K employees without hitting the Chatter Rate Limits

Hi All,

I want to update the chatter profile pictures for 30K employees.
Can some one help me with this.

Currently, I am loading the images into a document folder. Document Names matches with a field on the user object.
Have written a batch which will set the profile pictures, using the following method:

I thought Apex Batch will ananymously and I wont hit any limits. But its giving me an Rate Limit error, if there are 30K images in the document folder.

How can I overcome the Chatter Rate Limits.

This is for one time update. Is there a better option?.

Andy BoettcherAndy Boettcher
That's a good question.  There isn't a way to bypass the limits, but you may be able to work with support to potentially relax them (BIG MAYBE) for a one-time operation.

Outside of that, you may have to just work within the limits - 60 per hour, every hour until you're done.  =(