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
Artyom GrigorArtyom Grigor 

Update status (NewsFeed) for few users.

Hello!

I've application. I can login and update status through sObject.

I want update status for few users from my app by changing their UserId.

var user = new sObject {Id = _service.getUserInfo().userId, type = "User"};

But I have error when I put something like this:

//var user = new sObject {Id = "005A0000001r4j4IAA", type = "User"};

 

Could you please help me, how can I do this? Or each user has to login first? So if I know all UserIds for my organization I couldn't use it? And as a result I can't develop service-to-service integration?

Thanks!

 

dkadordkador

What error are you getting?