Question

Get Code Names for Columns in a Object

Hi 

Is there any way to get all  the code column names in an object  in C#.

 

Regards

Rakshith Dheer

Like 0

Like

1 comments

Hello,

 

There is no direct method to do that, but here are a couple of options that may help:

 

1) When opening an object in the designer this service is called (via POST request):

 

https://creatioAppURL/0/ServiceModel/EntitySchemaDesignerService.svc/Ge…

 

to get the content of the object (metadata). The body for this request is the following:

 

{"schemaUId":"5479e4d7-510e-4b18-9242-e2b3125ab786","useFullHierarchy":false}

 

5479e4d7-510e-4b18-9242-e2b3125ab786 should be replaced with the UId of the object you need. Received JSON string can be then parsed to get the list of columns of the object.

 

2) You can also create a simple ESQ, use the AddAllSchemaColumns method and then retrieve the list of columns from the Columns property of the ESQ instance you created.

Show all comments