Last active
December 19, 2015 16:59
-
-
Save theWill/5987855 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code from the core cmc-sfdc.js file.