Exemple #1
0
    async Task <Tuple <List <dynamic>, string> > QueryRecordsContinuation(string nextRecordsUrl)
    {
        List <dynamic> recordList = new List <dynamic>();

        Salesforce.Common.Models.Json.QueryResult <dynamic> queryRecordResult = await Client.QueryContinuationAsync <dynamic>(nextRecordsUrl);

        recordList.AddRange(queryRecordResult.Records);

        return(new Tuple <List <dynamic>, string>(recordList, queryRecordResult.NextRecordsUrl));
    }
Exemple #2
0
    async Task <Tuple <List <dynamic>, string> > QueryRecordsPaged(string query, bool queryAll = false)
    {
        List <dynamic> recordList = new List <dynamic>();

        Salesforce.Common.Models.Json.QueryResult <dynamic> queryRecordResult = queryAll ?
                                                                                await Client.QueryAllAsync <dynamic>(query) :
                                                                                await Client.QueryAsync <dynamic>(query);

        recordList.AddRange(queryRecordResult.Records);
        return(new Tuple <List <dynamic>, string>(recordList, queryRecordResult.NextRecordsUrl));
    }