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

Connect for PHP 1.4 Requires ApplicationContext

Received Response
edited Jun 13, 2022 4:09AM in General Technical Discussions 3 comments


I've been using OSC's various Connect APIs for a long time, but there are a couple of new wrinkles in version 1.4. Here's one of them: when calling RNObject::fetch(...) you now have to provide an ApplicationContext. This is done on line 15 of the code block below. If you don't do this, you'll get an exception that says something similar to

ApplicationContext is not set for the request for class RightNow\Connect\v1_4\Incident

Connect Web Services has always required an application context, but this is obvious when classes are generated from the WSDL. It's less obvious with PHP, and the documentation for RNObject::fetch(...) doesn't mention it.

Howdy, Stranger!

Log In

To view full details, sign in.


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