function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
robdbirchrobdbirch 

Chatter isModifiedUrl getting "Invalid feed modified token"

I submitted a case to have this feature enabled. They have enabled the feature.  Prior to the feature being enabled the is-modified field was null. 

 

Request: https://na15.salesforce.com/services/data/v27.0/chatter/feeds/news/me?sort=CreatedDateDesc

 

Response: {"feedItemsUrl":"/services/data/v27.0/chatter/feeds/news/005i0000000qJX7AAM/feed-items","isModifiedUrl":"/services/data/v27.0/chatter/feeds/news/005i0000000qJX7AAM/is-modified?since=2%3A1368707238000"}

 

Request:

https://na15.salesforce.com/services/data/v27.0/chatter/feeds/news/005i0000000qJX7AAM/is-modified?si...

 

Response: 

[

  {

    "message" : "Invalid feed modified token: 2%3A1368707238000",

    "errorCode" : "INVALID_FIELD"

  }

]

 

 

alouie_sfdcalouie_sfdc

It's unclear to me why the isModifiedUrl isn't working for you. Would you be able to try using curl to see if you get the same results? The commands will look something like this:

 

First request:

curl -H "X-PrettyPrint: 1" --header 'Authorization: OAuth <00D...your sid or oauth token here>' https://na15.salesforce.com/services/data/v27.0/chatter/feeds/news/me

 

Second request, using the isModifiedUrl from the first response:

curl -H "X-PrettyPrint: 1" --header 'Authorization: OAuth <00D...your sid or oauth token here>' https://na15.salesforce.com/services/data/v27.0/chatter/feeds/news/005i0000000qJX7AAM/is-modified?since=your_token_here

rbirchrbirch

Thanks for the suggestion. I am using a visual curl tool and it is failing in that tool, but  is working perfectly fine using curl from the command line! Grrrr!

rbirchrbirch

When I was copying and pasting the url into the visual tool what I needed to do is url decode the the parameter. Convert '

%3A' to ':'

Thought, I tried that yesterday!

 

Thanks again

alouie_sfdcalouie_sfdc
No problem. Happy to help!