+ Start a Discussion
Srinivas Reddy Annadi 23Srinivas Reddy Annadi 23 

ConnectApi.ConnectApiException: Invalid sharing type I Class.ConnectApi.ChatterFeeds.postFeedItem: line 7198

I am facing an issue when attachments are inserting into salesforce from third party and salesforce user as modifyall access to all objects but recently we restricted the guest user access to read, create for winter 21 release.it throwing the error as 'Invalid sharing type Class.ConnectApi.ChatterFeeds.postFeedItem: line 7198' and where can i find the 7198 line number and can you please help on this.

AnudeepAnudeep (Salesforce Developers) 
Hi Srinivas, 

Can you check if you have any triggers on contentVersion? If yes, you need to ensure you have the following set

link.Visibility = 'AllUsers';

link.ShareType = 'I';