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

Lookup method
Coding and Extensions
Saina Cloud Software Solutions

Lookup method in Dynamics 365 for Finance and Operations

[DataField] class ModelID { /// /// /// /// /// public void lookup(FormControl _formControl, str _filterStr) { //super(_formControl, _filterStr); //Table Relations //select * from POLModelTable //where IsActive = Yes Query query

Read More »
Dynamic queries
Coding and Extensions
Saina Cloud Software Solutions

Dynamic queries in Dynamics 365 for Finance and Operations

Scenario CODE* public void dynamicQueries() { Query query = new Query(); QueryBuildDatasource qbdsPOLMobileServiceTable, qbdsPOLModelTable; QueryBuildRange qbrModelId; qbdsPOLMobileServiceTable = query.addDataSource(tableNum(POLMobileServiceTable)); qbdsPOLModelTable = qbdsPOLMobileServiceTable.addDataSource(tableNum(POLModelTable)); qbdsPOLModelTable.relations(true); //Use Relations //qbdsPOLModelTable.addLink(fieldNum(POLMobileServiceTable, ModelId), fieldNum(POLModelTable, ModelID)); //Ranges

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 »