• ShozubQ
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

I am testing to post file cotent to feedcomment from SOAP UI,  I am successfully able to post file to my feedItem but not in feedcomment. 

 

Here is my request xml for posting file content in feedcomment

 

 <sObjects xsi:type="FeedComment">
            <FeedItemId>${#TestCase#FeedItemId}</FeedItemId>
            <CommentBody>${#TestCase#Body}</CommentBody>
            <commentType>${#TestCase#ContentComment}</commentType>
 </sObjects>

 And here is the working one for feedItem 

 

<sObjects xsi:type="FeedItem">
           <ParentId>${#TestCase#ParentId}</ParentId>
           <Type>ContentPost</Type>
           <ContentData>${#TestCase#ContentData}</ContentData>
           <ContentFileName>${#TestCase#ContentFileName}</ContentFileName>
</sObjects>

 

I think there is some issue with order in how to send it, or I am missing few fields, see this link http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_objects_feeditem.htm|StartTopic=Content%2Fsforce_api_objects_feeditem.htm|SkinName=webhelp

 

 

Thanks 

Hi,

 

SELECT Body, CommentCount, Id, InsertedById, IsDeleted, LikeCount, LinkUrl, ParentId, RelatedRecordId, Title, Type, CreatedDate, ContentData, ContentDescription, ContentFileName, ContentSize, ContentType, Parent.Name, CreatedBy.FirstName FROM FeedItem WHERE Type != 'ContentPost' ORDER  BY  CreatedDate  DESC

 

My aim is to get the Parent name and the feed created person name with the feedItem using above query.

 

The Parent name and created by fields are allways returing null. Kindly advice am I doing any mistake or what is the right way to get the parent name from the FeedItem.ParetnId.

 

Thanks,

I am testing to post file cotent to feedcomment from SOAP UI,  I am successfully able to post file to my feedItem but not in feedcomment. 

 

Here is my request xml for posting file content in feedcomment

 

 <sObjects xsi:type="FeedComment">
            <FeedItemId>${#TestCase#FeedItemId}</FeedItemId>
            <CommentBody>${#TestCase#Body}</CommentBody>
            <commentType>${#TestCase#ContentComment}</commentType>
 </sObjects>

 And here is the working one for feedItem 

 

<sObjects xsi:type="FeedItem">
           <ParentId>${#TestCase#ParentId}</ParentId>
           <Type>ContentPost</Type>
           <ContentData>${#TestCase#ContentData}</ContentData>
           <ContentFileName>${#TestCase#ContentFileName}</ContentFileName>
</sObjects>

 

I think there is some issue with order in how to send it, or I am missing few fields, see this link http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_objects_feeditem.htm|StartTopic=Content%2Fsforce_api_objects_feeditem.htm|SkinName=webhelp

 

 

Thanks