Get title of columns ESQ

Hello community!

I need get the title of the column form ESQ. The query not have the tile localization.

How can get it? Any function or ESQ query to have that?

 

Regards,

 

Like 0

Like

3 comments

It should be something like this

var userConnection = Get<UserConnection>("UserConnection");

var activityQuery = new EntitySchemaQuery(userConnection.EntitySchemaManager,"Activity");

activityQuery.AddAllSchemaColumns();

var activityId = new Guid("0afe839a-ff8c-4543-a7b8-29e4aab9787a");

var filter = activityQuery.CreateFilterWithParameters(FilterComparisonType.Equal, "Id", activityId);

activityQuery.Filters.Add(filter);

var activityEntities = activityQuery.GetEntityCollection(userConnection);

foreach (var activityEntity in activityEntities)

{

    var titleColumnCaption = activityEntity.Schema.Columns.GetByName("Title").Caption.Value;

}

return true;

Eugene Podkovka, This is only for c#? is posible in javascript?

In JS columns are already loaded. You can get access to the columns in the following way.

https://academy.bpmonline.com/documents/technic-sdk/7-11/use-entitysche…

Show all comments