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

psphanindrakuma
Tera Guru
Tera Guru

Hi Raja!

Can you expalin about your requirement. So that we can suggest some.

Raja16
Tera Contributor

I want to fetch the CSM objects field with all attributes using view name to show that fields in mywindow.  

Hi Raja,

What should that API return?

What would be the input for the API?

Can you explain that?

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

I want the Rest API to fetch the CSM objects field with all attributes using view name. I have to provide the two inputs, CSM object name and View name. I need a output like CSM object fields with all attributes.