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

Can't Retrieve Configs by Name

Accepted answer
13
Views
4
Comments
edited Jun 14, 2018 11:55PM in Integrations and APIs 4 comments

Content

Here's a new wrinkle. When I try this in a file manager custom script on a May 2017 site

$this->val = RNCPHP\Configuration::fetch('CUSTOM_CFG_VALID_CONFIG_NAME')->Value;

I get the error Invalid ID: No Configuration record found with LookupName = '(1000004)' If I change that line of code so it reads

$this->val = RNCPHP\Configuration::fetch(1000004)->Value;

then it works fine, and I get the expected value. Has anyone run into this before? Why would the config name not be an acceptable value to fetch()? The config name is copied-and-pasted, so I'm not misspelling it. I've tried it with single and double quotes just for the heck of it, but nothing seems to work.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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