The CreatorCon Call for Content is officially open! Get started here.

Rest API to get the form layout and fields

Raja16
Tera Contributor

Hi,

Do we have any Rest API to get the form layout and fields for Customer service relationships ( Contact, Account etc). If yes, Please provide the details about that. Otherwise, provide suggestion for how to get it. Thanks!

1 ACCEPTED SOLUTION

Raja16
Tera Contributor

I find the API's and It's worked. We need to achieve this using multiple API's.

https://<<instance_name>>/api/now/table/sys_ui_element?sysparm_query=sys_ui_section.view.name=<<view_name>>&sys_ui_section.name=<<object_name>>

https://<<instance_name>>/api/now/table/sys_dictionary?sysparm_query=name=<<table_name>>^element=<<element_name>>

View solution in original post

10 REPLIES 10

Max Gong
Tera Contributor

Thanks so much! it worked for me as well!

 

Example:

 

Fetch the fields of the incident form layout:

 

/now/table/sys_ui_element?sysparm_query=sys_ui_section.view.name=ess&sys_ui_section.name=incident
ess= Self Service
 
Fetch the metadata of each field (data type, length, etc):
 
now/table/sys_dictionary?sysparm_query=name=incident^element=caller_id
 
Cheers!