The below code is in script task .Using "Terrasoft.OrderDirection.DESC" in the below code i getting errors.Please tell me how to get the order by column desc.
var fileId = Get("FileId");
var toaddress= Get("toAddress");
Stream FileA = null;
string Fname = "";
var entitySchemaManager = UserConnection.EntitySchemaManager;
var entitySchemaQuery = new EntitySchemaQuery(entitySchemaManager, "UsrOfferManagerFile");
var fileDataColumnName = entitySchemaQuery.AddColumn("Data").Name;
var fileName = entitySchemaQuery.AddColumn("Name").Name;
Terrasoft.OrderDirection.DESC is used for ordering records only in the client esq. The issue occurs because in script task the server esq is used. Please find the example of ordering records in the server esq in the article by the link below: