我可以使用java rest api删除salesforce中的多条记录吗?
// Trigger for showing participants
var triggerDiv = $('span.registered');
var participantsTable = $('#participants');
// if participants table has no descendants
if( !participantsTable.has('tbody').length ){
console.log('has NOT registrants');
triggerDiv.on('mouseover mouseout', function(){
participantsTable.html('<tr><td>No one has yet to register</td></tr>').toggle();
});
} else {
console.log('has registrants');
triggerDiv.on('mouseover mouseout', function(){
participantsTable.toggle();
});
}
答案 0 :(得分:0)
您可以通过创建Post Url删除多条记录,如下所示:
String str = '';
for(String st : listOfIds){
str += 'id='+st+'&';
}
str = str.substring(0 , str.length());
PostMethod post = new PostMethod(instanceURL
+ "/services/data/v34.0/sobjects/Note/delete/records?"+str);