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

How can I fetch the visible(Display on End-User Side) ID and Label of the custom fields?

edited Oct 1, 2015 4:09AM in Reporting & Analytics for B2C Service 2 comments

Content

Recently, we have upgraded the CX to the May 2015 Version and migrated the CP2 framework to CP3. 
In the old version, we have a custom script with a MySql query with objects (tables) 'custom_fields', 'labels' and 'visibility' would fetch the visible (Display on End-User Side) Custom Field ID and its Label. 
But, the above mentioned objects are not exposed in the new version. 
I tried by using the getMetadata() function in the new custom script, but it shows all the incident custom field Labels regardless of the visibility and not showing the ID.
How can we fetch the ID and the Label of the custom field and restrict the result by using visibility.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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