You need to sign in to do that
Don't have an account?
DanielJimenez
Calling SalesForce API from Apex/VisualForce?
Does anyone have experience trying this? I'm building a page in force.com sites. Basically another tool will make an anonymous http POST call to this page to update a specific users chatter feed.
TIA,
Daniel
TIA,
Daniel
Try the following:
http://www.salesforce.com/us/developer/docs/ajax/Content/sforce_api_ajax_introducing.htm
Oh I see. So you want an external application to make an update to a users Chatter feed via HTTP post? Is that correct? If so, you could look at using the REST API, but you would have to write some javascript to dynamically update the page.
Ok now I am a little confused. If you are already on the platform, I do not see the need to perform a REST call which would be effectively an outbound call, just to have access to local data.
Can you describe your use case more so I can fully understand what you are trying to achieve.
Thanks
Daniel, I am facing the same issue: I want to create a chatter FeedItem on a site as Guest user. Unfortunately, Guest user has no permission to write Chatter objects, neither can configure that in SalesForce (no settings for that).
Does anybody know how to impersonalize Guest user to run Apex code as System admin?
I also tried to store the chatter events in a custom sobject and then use a scheduled job (which runs as system admin) to insert FeedItems but I can schedule jobs just once an hour, which is not acceptable for me.
Hi, I have already tried triggers too :) The problem is that if you make a change on an SObject as user Guest then the trigger is called under the same user, so I get the same permission error as before.
I am having this same problem... Did anyone come up with another workaround? The custom SObject approach seems the only way to go, but there has to be a better way.