使用java rest api post方法从salesforce中删除记录

时间:2016-01-09 05:48:42

标签: salesforce

我可以使用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();
            });

        }

1 个答案:

答案 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);