Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
file_get_contents not working in CPM — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

file_get_contents not working in CPM

Received Response
13
Views
2
Comments
edited Aug 27, 2020 3:54AM in B2B Service 2 comments

Content

I have created a opportunity_update CPM, on that based on some condition I'm calling the controller function on CP 

using the below method

$parms = "/opp_id/".$obj->ID."/key/".$value;
file_get_contents(""https://mysite.custhelp.com/cc/ajaxCustom/doSomething".$parms);

But I'm getting error message "Access to the file_get_contents is denied because it's trying to access restricted folder"

I can't use cURL because the CPM is not asynchronous as I need to fetch $obj->prev as part of business logic.

Attached the error screenshot

 

 

Version

20A

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!