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

Is there a way to get the cf_id value of a field?

Accepted answer
17
Views
5
Comments
edited Jun 6, 2018 9:33AM in Customer Portal 5 comments

Content

Using the getMetadata() function, I'm able to so far get the following data

$md = RNCPHP\ContactCustomFieldsc::getMetadata();           
print_r($md->welcome_screen);

which gives the following output

RightNow\Connect\v1_3\_metadata Object
(
    [type_name] => bool
    [COM_type] => Boolean
    [name] => welcome_screen
    [container_class] => RightNow\Connect\v1_3\ContactCustomFieldsc
    [is_object] => 
    [is_enumerable] => 
    [is_list] => 
    [is_nillable] => 1
    [default] => 
    [label] => Welcome Screen
    [description] => 
    [constraints] => Array
        (
        )

    [is_read_only_for_create] => 
    [is_read_only_for_update] => 
    [is_required_for_create] => 
    [is_required_for_update] => 
    [is_write_only] => 
    [named_values] => 
)

This does not give me the custom field ID though. Is there way, if it's possible, to get that information as well?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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