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
MiddhaMiddha 

Posting same status multiple times

Hi All,

 

I am trying to set current users chatter status message by updating the UserStatus field on user object. It works fine for the first time but if i try to set the same status again, it doesnt works. 

 

While we can do this from the Chatter tab UI. Any suggestions how we can do this from code as well?

 

Thanks.

spaspa

Assuming it works if you post a different status each time.

Possible workaround - clear the status field before setting it.