+ Start a Discussion
Sure@DreamSure@Dream 

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:
ConnectApi.chatterUsers.setPhoto().

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?.

Thanks
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.  =(