• alouie
  • NEWBIE
  • 25 Points
  • Member since 2011

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

Hello ,

 

I have a requrement wherein a Blob field in a custom object (storing the user photo) needs to be displayed as chatter user profile photo.

Currently , the User smallphotourl field is used to display the chatter user profile photo. How can this be updated to use my custom photo?

 

Its a critical requirement. Response is appreciated!

 

Thanks

anjs

 

I have a .NET ecommerce app that I've integrated with SF.com via the SOAP API.  Everything works great except for one thing.

 

You know how if you're Chattering you can type @Name and that person will receive an email notification?  I can't figure out how to do that via the SOAP API.  I tried including @Name and @[Name] in the FeedItem Body but that didn't work.  I even built an HTML anchor with the user's ID (I saw this in the HTML source of a Chatter page) but all that did was display the anchor as text in the Chatter item.

 

Can anyone give me any guidance on how to accomplish this?

 

Thanks,

 

Bill...

 

  • November 27, 2012
  • Like
  • 0

Hi There,

 

Attempting to get chatter feeds, messages, etc. and using:

 

..

public void showCurrentUserNewsFeed()
{
fetchChatterFeed(true, "/services/data/v22.0/chatter/feeds/news/me");
}

public void showUserNewsFeed(String userId)
{
fetchChatterFeed(true, "/services/data/v22.0/chatter/feeds/news/"+userId);
}

..

 

 

I can verify I am getting successful authentication because my userid derives from the token as expected.  However none of the example given URLs will return any information from the authenitcated user.

 

This is the validation being used:

 

..

HttpGet get = new HttpGet(url);

get.setHeader("Authorization", "OAuth " + loginResult.getAccessToken());

DefaultHttpClient client = new DefaultHttpClient();
HttpResponse resp = client.execute(get);

if (resp.getStatusLine().getStatusCode() != 200)
{
if (progress != null)
progress.cancel();

errorMsg = "Could not fetch Posts feed: "+url+" status code: "+resp.getStatusLine().getStatusCode();
showDialog(1);
return;
}
String result = EntityUtils.toString(resp.getEntity());

..

 

 instance_url/services/data/v22.0/chatter/feeds/news/me is returning error 404.

 

Thanks for any assistance in advance,

 

Geoff-

  • September 26, 2012
  • Like
  • 0

So I've been going around and around about this for a while now and nothing in the documentation seems to be accurate.  Hopefully I will supply enough detail that this matter can be solved.  I need to be able to retrieve any file that a user posts to chatter regardless of the size of the file.

 

I have a file which I posted to chatter via the web.

https://na9.salesforce.com/069E00000002wvT

When I look at the page it is listed under Chatter>>Files>>(FileName)

 

When I query for the file it only appears in Commencement

{"attributes":

{"type":"ContentDocument","url":"/services/data/v24.0/sobjects/ContentDocument/069E00000002wvTIAQ"},

"Id":"069E00000002wvTIAQ",

"CreatedById":"005E0000001zY1VIAU",

"CreatedDate":"2012-09-05T19:46:38.000+0000",

"LastModifiedById":"005E0000001zY1VIAU",

"LastModifiedDate":"2012-09-05T19:46:38.000+0000",

"IsArchived":false,

"ArchivedById":null,

"ArchivedDate":null,

"IsDeleted":false,

"OwnerId":"005E0000001zY1VIAU",

"SystemModstamp":"2012-09-05T19:46:39.000+0000",

"Title":"Trystan24hoursOld",

"PublishStatus":"P",

"LatestPublishedVersionId":"068E00000003GMnIAM"}

 

*The object above looks nothing like the ContentDocument Model provided here:

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm#sforce_api_objects_contentdocument

 

So, I have an OAuth token authorizing my Remote Access App. I'm using the REST API.  How do I download the file?  What I'm really trying to avoid here is screen scraping or other halfass methods like storing my clients' username and password.

 

I was following this tutoiral:

http://danlb.blogspot.com/2012/06/salesforce-rest-api-read-file.html

but it obviously doesn't work, because it uses the "Document" sObject and the file I have doesn't appear there:

[{"message":"The requested resource does not exist","errorCode":"NOT_FOUND"}]

 

 

What I am hoping for:

Some call that will return a https://direct/link/to/the/file/i/want/to/download.jpg where I can pass "Authorization OAuth: <access_token>" in the headers and download the actual file.

 

What I will settle for:

Any programmatic way of retrieving the file that does not involve the customer having to divulge their username and password to me in order screen scrape SF to login and get to the file.

 

Hello ,

 

I have a requrement wherein a Blob field in a custom object (storing the user photo) needs to be displayed as chatter user profile photo.

Currently , the User smallphotourl field is used to display the chatter user profile photo. How can this be updated to use my custom photo?

 

Its a critical requirement. Response is appreciated!

 

Thanks

anjs