Retrieve RightNow object’s custom fields (API ver 1.2)

In the new Oracle RightNow CX (e.g, May 2012), it allows you to add a custom field to a standard object (e.g, contact) via:

  1. Configuration -> Database -> Custom Fields
  2. Configuration -> Object Designer -> New -> System Attribute

 

So, what is the difference? In the API point of view, the custom field created via Option 1 will be grouped in a standard custom field package (c) whereas the custom field created via Option 2 will be grouped in a custom package which can be created in the Object Designer panel. Below is the sample response for GetMetaDataForClass of Contact custom field:

	
	
		
			
				
					
						OBJECT
						GenericObject
						ContactCustomFieldsCO
						false
						
						CO
						false
						ALLOWED
						IGNORED
						ALLOWED
						ALLOWED
						false
					
					
						OBJECT
						GenericObject
						ContactCustomFieldsc
						false
						
						c
						false
						ALLOWED
						IGNORED
						ALLOWED
						ALLOWED
						false
					
				
				false
				false
				false
				false
				ContactCustomFields
				
					urn:objects.ws.rightnow.com/v1_2
					ContactCustomFields
				
			
		
	

As you can see, there are two MetaDataAttributeList records with different MetaDataLink returned (the number of records could be more if you have more custom packages in your RightNow instance) in the response:

  • ContactCustomFieldsCO – refers to the custom fields that you created via Option 2
  • ContactCustomFieldsc – refers to the custom fields that you created via Option 1

 

In order to retrieve a complete list of contact custom fields, you have to perform 2 GetMetaDataForClass requests with the MetaDataLink (ContactCustomFieldsCO and ContactCustomFieldsc).

Get in touch today to see how WDCi can help your business.