Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Compile Error: Method was removed after version 35.0: postFeedElement at line 109 column 40 #11

Open
mhumpolec opened this issue Sep 27, 2017 · 1 comment

Comments

@mhumpolec
Copy link

I'm getting error when adding the class into my instance with API 40.

@moldar2
Copy link

moldar2 commented Oct 10, 2017

It looks like the last paramater is no longer used.

Try this instead.

return ConnectApi.ChatterFeeds.postFeedElement(communityId, input);

From:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_ConnectAPI_ChatterFeeds_static_methods.htm

In version 36.0 and later, this method is no longer available because you can’t create a feed post and upload a binary file in the same call. Upload files to Salesforce first, and then use postFeedElement(communityId, feedElement) to create the feed post and attach the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants