Export Salesforce Reports as CSV (Java)

后端 未结 1 640
野的像风
野的像风 2021-01-28 12:16

I\'m trying to automatise the exporting of Salesforce Reports as CSV\'s, so far I\'ve managed to authenticate in the Salesforce API but I couldn\'t find any proper documentation

相关标签:
1条回答
  • 2021-01-28 12:55

    If you're authenticated (got session id back) you're almost there.

    The hacky, not officially supported way is to send a GET request to the report export just like user would click a button. Check out How to download a report as a CSV directly from Salesforce Lightning? or Salesforce: Download Reports via URL in R examples (it's not Java but same principle). You'd have to send header that sets cookie with sid=sesionidgoeshere.

    The more official way would be to use the reporting API

    0 讨论(0)
提交回复
热议问题