Expert Insights on Dynamics 365, Power Platform and CRM: Solutions, Tutorials, and Best Practices

Dynamic queries
Coding and Extensions
Saina Cloud Software Solutions

Dynamic queries in D365 Finance & Operations

Scenario for the Dynamic queries in Dynamics 365 for Finance and Operations CODE public void dynamicQueries() { Query query = new Query(); QueryBuildDatasource qbdsPOLMobileServiceTable, qbdsPOLModelTable; QueryBuildRange qbrModelId; qbdsPOLMobileServiceTable = query.addDataSource(tableNum(POLMobileServiceTable));

Read More »
Collection classes
Coding and Extensions
Saina Cloud Software Solutions

Collection classes in Dynamics 365 for Finance and Operations

public void collectionClasses() { //1. List //To add values to the list List lst = new List(Types::String); lst.addEnd(“Value-1”); lst.addEnd(“Value-2”); lst.addStart(“Value-3”); lst.addEnd(“Value-4”); //Ouput: Value-3, Value-1, Value-2, Value-4 //Enumerate the list ListEnumerator

Read More »
Clicked event of button control
Coding and Extensions
Saina Cloud Software Solutions

Clicked event of button control in Dynamics 365 for Finance and Operations

[Form] public class POLInReviewMobileServiceTable extends FormRun { [Control(“Button”)] class UpdateAsRepaired { /// /// /// public void clicked() { super(); //Updation of record. POLMobileServiceTable polServiceTableUpd = POLMobileServiceTable::find(POLMobileServiceTable.ServiceID, true); //assign the values

Read More »
Usage of args object in forms
Coding and Extensions
Saina Cloud Software Solutions

Usage of args object in forms in Dynamics 365 for Finance and Operations

internal final class POLUpdateAsDelivered { public static void main(Args _args) { if (_args.record() && _args.record().TableId == tableNum(POLMobileServiceTable)) { POLMobileServiceTable polServiceTable = _args.record(); //Current selected record from the grid. POLMobileServiceTable polServiceTableUpd

Read More »