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
// Example use: | |
// First edit code below and replace ###ObjectName### with Contact | |
// Then execute in the Developer Console | Debug | Open Execute Anonymous Window | |
// DeleteRecordsBatchable batchable = new DeleteRecordsBatchable('SELECT Id FROM Contact WHERE Name = \'DeleteMe\''); | |
// Id batchId = Database.executeBatch(batchable, 10); | |
global class DeleteRecordsBatchable implements Database.Batchable<sObject> { // created to bulk delete records - use with care! | |
// Fields | |
global final String Query; |
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
var querystrings = new System.Collections.Generic.Dictionary<string, string>(); | |
querystrings.Add("where", "ContactNumber = \"123\""); | |
querystrings.Add("order", "Name DESC"); | |
IConsumerRequest filteredGetContactRequest = consumerSession | |
.Request() | |
.ForMethod("GET") | |
.WithQueryParameters((IDictionary)querystrings) | |
.ForUri(new Uri("https://api.xero.com/api.xro/2.0/Contacts")) | |
.SignWithToken(accessToken); |