Process a file hosted on an external server from Sugar Cloud

Dear all,

According to Sugar Cloud restriction, I want to know if we can, from a Sugar Cloud Instance, process a file (XML file) hosted every day on a remote server of my customer ?

Best regards,

Fred

Parents
  • Yes you can....

    As an example I added a small scheduler job which reads the exchange rates for Euros from an XML file provided by the ECB server. It's just a very simple example which should show the principle of operation. For sensitive customer data a more complicated CURL dialog  with authentication is recommended.

    CurrencyUpdate_EUR_1000.zip

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • hi  

    When trying to upload your example, I get the following errors/warnings;

    File Issues
    SugarModules/custom/Extension/modules/Schedulers/Ext/ScheduledTasks/Update_Currencies_EUR.php
    Code attempted to call denylisted function "curl_init" on line 46
    Code attempted to call denylisted function "curl_setopt" on line 47
    Code attempted to call denylisted function "curl_setopt" on line 48
    Code attempted to call denylisted function "curl_setopt" on line 49
    Code attempted to call denylisted function "curl_exec" on line 50

    Do you know how to achieve this without using current restrictions please?

    Thank you in advance

Reply
  • hi  

    When trying to upload your example, I get the following errors/warnings;

    File Issues
    SugarModules/custom/Extension/modules/Schedulers/Ext/ScheduledTasks/Update_Currencies_EUR.php
    Code attempted to call denylisted function "curl_init" on line 46
    Code attempted to call denylisted function "curl_setopt" on line 47
    Code attempted to call denylisted function "curl_setopt" on line 48
    Code attempted to call denylisted function "curl_setopt" on line 49
    Code attempted to call denylisted function "curl_exec" on line 50

    Do you know how to achieve this without using current restrictions please?

    Thank you in advance

Children
No Data