Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

retrive the last record dynamics 365 by c#

var qe = new QueryExpression("MyCustomEntityName");
qe.ColumnSet = new ColumnSet(true);
qe.AddOrder("createdon",OrderType.Descending);
qe.TopCount = 1;
var entity = service.RetrieveMultiple(qe).Entities.FirstOrDefault();
Source by community.dynamics.com #
 
PREVIOUS NEXT
Tagged: #retrive #record #dynamics
ADD COMMENT
Topic
Name
9+7 =