I want to expose my service to another system using rest api. Once the system calls the service they should be able to download the all the accounts data(1mn) in csv format.

Can I achieve this using rest api?


Do I have to use bulk api 2.0 methods and query the data and return in csv format?

I need some suggestions over this.


Yes, you can achieve that. You can implement your RESTFUL Salesforce service.

Read and follow documentation about Apex Rest

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.