
1 réponse

This sounds like a lot of work to get around SOQL query limit exception. I know you said you tried already, but you may want to look at that again. 100 queries is a lot to run in a single transaction if your code is properly bulkified. Regardless, if you want to send your data to another system, you cannot use the metadata api, that is only for metadata, not actual data. You probably want to use the Bulk API to load large amounts of data. You will need some sort of batch process to pull this data to your target system if you want to do it on a regular basis. Then you use the api of your target system to pull some data when you want to use it. Trying to do that all in one transaction will probably result in timeouts, so i would not really recommend that.