Using the Chatter REST API from Apex... when I request feed items for a case record using Apex code that looks like the below...
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setEndpoint(this.server + '/services/data/v23.0/chatter/feeds/record/' + caseId + '/feed-items');
request.setHeader('Authorization', 'OAuth ' + this.sessionId);
HttpResponse response = http.send(request);
In the JSON results, I am only getting the last page of the feed items and the nextPageUrl is always null.
If I append a '&pageSize=100' to the URL then I can get all of the feed items up to 100, but again I only get 1 page of results.
In one of my requests, I actually saw the "nextPageUrl' having a non-null value: this was once when I was not using the pageSize URL parameter, but it was intermittent. Not sure why it showed me a value for just one call.
What I want to do is to be able to make multiple requests to get the first page, and then the second page, etc.
Does anyone have an example of Apex code that should work? Or any clues on what I might be doing wrong?
When the below Apex code executes, I receive the below error message. If I comment out the two " setSaveAsActivity" lines, I don't get this error message. I cannot recall the history for why this Apex code is written this way, but do I need to be making these mail.setSaveAsActivity(false) calls?
internal error [SendEmail failed. First exception on row 1; first error: INVALID_FIELD_WHEN_USING_TEMPLATE, When a template is specified the plain text body, html body and subject may not be specified ].
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
List<Messaging.SingleEmailMessage> messages = new List<Messaging.SingleEmailMessage>();
for (Id recipient:recipients)
Is there an easy way to add a warning dialog box as part of a custom field's on-change event for a screen created using Force.com Builder (setup UI)?
1) select one more Salesforce users using the listViews component
2) and then perform an action on the selected users, such as sign them up for a company event.
When I tried to do this, I encountered a few technical issues
a) when using the listViews component with the standard user object, I cannot define custom buttons, and there are no default buttons, and so no action buttons appear in the Visualforce listViews component
b) for the standard user object, when I use the listViews component, no checkboxes appear in the left-hand action column
Does anybody have a suggestion for the best way to implement this functionality?