• One云
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I'm trying to follow the 'Identify an item in a list by its property name. This example uses JSON.' in the documentation here: http://www.salesforce.com/us/developer/docs/dbcom_chatter_rest_api/Content/intro_include.htm However, when I try '/services/data/v32.0/chatter/users?include=/users/item/lastName' in the workbench REST Explorer the json returned is 
{
  "users" : [ { }, { } ]
}
I would expect the return to be
{
 "users" : [
   {
     "lastName" : "Smith"
   },
   {
     "lastName" : "Jones"
   } 
 ] 
}
Any help would be great. I'm not sure why the users items are returning null.
  • April 30, 2015
  • Like
  • 0
Could someone help me understand the purpose of these comments in SalesforceOAuthPlugin.js ? * PhoneGap returns a dictionary with: * accessToken * refreshToken * clientId * userId * orgId * loginUrl * instanceUrl * userAgent What is the PhoneGap dictionary and how can it be used? Is it possible to use navigator.notification,alert() or console.log() to verify the current userId, orgId, or even sessionId?
  • February 02, 2012
  • Like
  • 0
I'm trying to follow the 'Identify an item in a list by its property name. This example uses JSON.' in the documentation here: http://www.salesforce.com/us/developer/docs/dbcom_chatter_rest_api/Content/intro_include.htm However, when I try '/services/data/v32.0/chatter/users?include=/users/item/lastName' in the workbench REST Explorer the json returned is 
{
  "users" : [ { }, { } ]
}
I would expect the return to be
{
 "users" : [
   {
     "lastName" : "Smith"
   },
   {
     "lastName" : "Jones"
   } 
 ] 
}
Any help would be great. I'm not sure why the users items are returning null.
  • April 30, 2015
  • Like
  • 0