[SalesForce] Custom Object & Field Creation through CSV Upload

I want to make a tool which will create custom objects & fields by uploading data through a CSV file. I have created the same using MetaDataService API.
I'm able to create object, but can create only 5 fields at a time.
If i try to upload more than 5 fields, then i'm getting the following error:-
Too many callouts:11
Any suggestions?

Best Answer

You'll have to make a "batch apex" function if you want to call out many times. You can use Database.Stateful to store the results of the transaction, which you can stream back to the client after completion.

Related Topic