Scheduled export of a filtered list of accounts to be used in another system

Sugar Professional 7.6.0

I have been asked to created a scheduled export of a couple of fields from accounts to be imported (automatically) into another system.  The format that would be best would be a json list. 

I have read about the export api, but I'm not sure how to incorporate that into the schedulers.

Also has anyone worked with this kind of event before?  Any advice on how to add a location to where the file exports to?

Parents
  • Hi Mary,

    While I haven't used the exports API myself just yet, from the /help page, it looks like the response that comes in from the API is the actual code for the CSV file. Once you have this in a PHP variable, you can create the file yourself in PHP wherever you want, populating it with the data that came in from the API. Let me know if you have any questions or would like for me to throw together an example of this for you!

    -Alan

Reply
  • Hi Mary,

    While I haven't used the exports API myself just yet, from the /help page, it looks like the response that comes in from the API is the actual code for the CSV file. Once you have this in a PHP variable, you can create the file yourself in PHP wherever you want, populating it with the data that came in from the API. Let me know if you have any questions or would like for me to throw together an example of this for you!

    -Alan

Children