You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
Here is code for forcetk.js that adds in the ability to access Chatter.
/*
* Retrieves field values for a Chatter record of the given type.
* @param objtype object type; e.g. "comments"
* @param id the record's object ID
* @param [fields=null] optional comma-separated list of fields for which
* to return values; e.g. Name,Industry,TickerSymbol
* @param callback function to which response will be passed
* @param [error=null] function to which jqXHR will be passed in case of error
*/
forcetk.Client.prototype.chatter = function(objtype, id, fieldlist, callback, error) {
if (!arguments[4]) {
error = callback;
callback = fieldlist;
fieldlist = null;
}
var fields = fieldlist ? '?fields=' + fieldlist : '';
this.ajax('/' + this.apiVersion + '/chatter/' + objtype + '/' + id
+ fields, callback, error);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here is code for forcetk.js that adds in the ability to access Chatter.
The text was updated successfully, but these errors were encountered: