Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
Custom Process PHP, cURL and caching... — 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

Custom Process PHP, cURL and caching...

Received Response
41
Views
5
Comments
edited Jun 8, 2022 12:02PM in General Technical Discussions 5 comments

Content

Does any caching occur on the RightNow side when using cURL in a custom process script? I have a custom process on Contact Update with the important bits of the script below.

Obtain values...
        $contactId = $obj->ID;
        $retailerUsername = $obj->CustomFields->Retailer->Username;
        $retailerPassword = $obj->CustomFields->Retailer->password;
        $retailerId = $obj->CustomFields->c->storerefnum;

Build array...
          $post = array(
            'app_key'     => $app_key,
            'contact_id'  => $contactId,
            'email'       => $retailerUsername,
            'password'    => $retailerPassword,
            'retailer_id'  => $retailerId
          );
          
cURL stuff...
          load_curl();
          $cURL = curl_init();
          curl_setopt($cURL, CURLOPT_URL, $url);
          curl_setopt($cURL, CURLOPT_POST, 1);
          curl_setopt($cURL, CURLOPT_POSTFIELDS, $post);
          curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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