Getting field names of an object
We have a requirement for fetching all the column names of an object using source code.
I have taken this community post https://community.creatio.com/questions/get-title-columns-esq as reference and tried.
As per the article, the below code is used for fetching the column names after fetching the entity collection.
titleColumnCaption = entity.Schema.Columns.GetByName("Title").Caption.Value;
But the code returns the null value.
Kindly let us know whether the above line of code is correct or not?
If not, suggest us an other way to achieve the functionality.