• goodtest123
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies

I am trying to login at https://www.salesforce.com/services/Soap/c/19.0

My account is rajaraodv100@cde-chatter-yahoo.com

 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap
/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
><soapenv:Body><soapenv:Fault><faultcode>sf:UNSUPPORTED_API_VERSION</faultcode><faultstring>UNSUPPORTED_API_VERSION
: Invalid Api version specified on URL</faultstring><detail><sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault"
><sf:exceptionCode>UNSUPPORTED_API_VERSION</sf:exceptionCode><sf:exceptionMessage>Invalid Api version
specified on URL</sf:exceptionMessage></sf:UnexpectedErrorFault></detail></soapenv:Fault></soapenv:Body
></soapenv:Envelope>

Is there an example as to how to upload a file via webservices to a chatter feed?

Hi,

My Chatter feed has a file that was uploaded by someone. I have a remote application from where i am making webservices call to get the feedPost.

What I want to do is to create a link to this file so that the user can click on it to download directly from my remote application. I can get the name, id of the file etc from FeedPost, but I am not sure how to create URL

 

SELECT Id, Type,CreatedBy.FirstName, CreatedBy.LastName,ParentId, Parent.Name,FeedPost.Id, FeedPost.Type, FeedPost.Body, FeedPost.Title,(SELECT Id, FieldName, OldValue, NewValue FROM FeedTrackedChanges ORDER BY Id DESC),(SELECT Id, CommentBody, CreatedDate, CreatedById,CreatedBy.FirstName, CreatedBy.LastName FROM FeedComments ORDER BY CreatedDate DESC LIMIT 4)FROM NewsFeed

 

Does anyone know how to do that?