Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

edited Aug 27, 2020 3:54AM in Fusion 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!