Michael Epstein

Results 16 comments of Michael Epstein

Hi @psycook - I'd love to see the code. Would you post here, or open a pull request if that's easier. Thank you

@perbrondum sorry, I missed this issue. I neglected to include a 'convenience' method in `Connection+API.swift` but you could quickly create your own: ```swift func nextResultsPage(path: String) async throws -> QueryResult...

Sorry @perbrondum - since `Query` is inaccessible, you could instead just create your own struct by copying `Resource.Query.NextResults` as: ```swift struct MyOwnNextResultsPage: DataService { typealias Output = QueryResult let path:...

Hi @perbrondum not sure I understand your question - the above `nextResultsPage` method returns a `QueryResult` but you could modify it to return `QueryResult` instead where `T` is your own...

@perbrondum the Salesforce REST API `search` resource returns an array of records, and those records could be of different types depending on the domain of the SOSL search. In contrast,...

@perbrondum do all the objects you're looking for have a lookup relationship to Account (e.g. Opportunity and Contact)? If so, you could use a [parent-to-child SOQL query](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships_query_using.htm#sforce_api_calls_soql_relationships_query_using). I don't understand...

Hi @perbrondum the results will be returned in an array of [Records](https://github.com/mike4aday/SwiftlySalesforce/blob/ac2634c140b009c6ccb1a9fc061f6f29fd84a784/Sources/SwiftlySalesforce/Record.swift). The `object` property of each `Record` will tell you its type (e.g. "Contact") and then you could call...

@perbrondum can you provide more details? Are you looking for 'direct' support of the composite API insert capability? https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_create.htm

@perbrondum the new-ish Composite API does just that - inserts up to 200 records, and has an "all or nothing" option. I can add a method to Swiftly Salesforce that...