Topic by Aparajit Malli
Content
Hi,
REQUIREMENT 1 - Export Contact/Asset data to flat file (Request.txt - fixed width) and put it in a folder in FTP site, on a daily basis.
REQUIREMENT 2 - Also, on a daily basis, Read data (basically, just Status & Results) from a similar flat file (Response.xt - fixed width) from another folder in the same FTP site and then update Contact/Asset's Status in Service Cloud.
To implement this, I am planning to do these steps.
1) Create a PHP file (request.php) which reads the required Contact/Asset data from Service Cloud and create a file. QUESTION - Since file system is Service Cloud is not exposed, where can I place this file? Can I put the file directly in FTP site?
2) CRON job will run the PHP file, on a daily basis. I believe there is no other way of running a batch job every day.
3) Similarly, Create another PHP file (response.php) to read data from response.txt and update Contact/Asset' Status. QUESTION - Should response.txt be copied to Service Cloud file system before reading it or can it read directly from FTP site?
4) CRON job will run "response.php" on a daily basis.
Is there a better way and more efficient way of doing this? My main question is where to create the request file and where to read the response file from? Am I planning to do something which is plainly wrong or infeasible?