Skip to content

Instantly share code, notes, and snippets.

@theWill
Last active December 19, 2015 16:59
Show Gist options
  • Save theWill/5987855 to your computer and use it in GitHub Desktop.
Save theWill/5987855 to your computer and use it in GitHub Desktop.
//Use the SObject Rows resource to update records
Service.update = function(type, sfdcId, data, options) {
var postData = {
b: data,
q: '/' + sfVersion + '/sobjects/' + type + '/' + sfdcId
};
//
return $http.put(cmcSFProxyEndPoint, postData, {
transformRequest: function(data, headersGetter) {
return 'b=' + JSON.stringify(data.b) + '&q=' + data.q;
}
});
}
@theWill
Copy link
Author

theWill commented Jul 12, 2013

Code from the core cmc-sfdc.js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment