I'm working on a integration project where I'm supposed to get millions of data by doing a callout to a REST API which I then need to insert in a custom object.
I'm having issues understanding 2 points
- Will I be able to parse the JSON with
parser.readValueAs()normally as I do with other response data?
- Most importantly, if I'm successful doing the above point, how should I approach inserting those data into Custom Object??
What I have already checked
I'm aware of Batch Job, but I'm unable to figure out how can I call it with a List (after parsing JSON response)
I did a bit of googling about Bulk API, however it seems I cannot call it from Apex Code.
Any pointers to the right direction is really appreciated.