D365OF
Allow duplicate check Global Address Book Dynamics 365 for finance and operations.
Dynamics 365 for finance and operations provide functionality of check Party Name already exists in Global Address book, So End user can select instead create a new one if required.
Here is video I shared this functionality in small less then 5 minutes series.
unable to read beyond the end of stream Dynamics 365 for finance and operations
unable to read beyond the end of stream
Add Financial dimension to Customer/Vender with X++ Dynamics 365 for finance and operations
The field with ID ‘0’ does not exist in table Dynamics 365 For finance and operations
Hi all, I face this error, while extended existing custom report. I added some fields in temp table, after update logic in dp class, On report data set update.
But at run time report shows this error. While debugging the code, I found the error occur on mapping the new fields in temp table.
Solution :
I build the whole model. After that error was removed.
An error occurred during report data sets execution D365 For finance and operations
How to copy financial dimension form one object to other. Dynamics 365 For finance and operations
Hi all, In some cases we can need to copy financial dimension from one object to other for example Customer to Sales order or Vendor to purchase order.
In Ax 2012 it little easy. But in D365 For finance and operations, it is little bit tricky.
I did this with following code snippet. With the help of out of box. LedgerDimensonDefaultFacade class i used the merge default dimension method and passed same table dimension in form and to dimension.
Result is interesting.
salestable.DefaultDimension= LedgerDimensionDefaultFacade::serviceMergeDefaultDimensions(CustTable.DefaultDimension,CustTable.DefaultDimension);
Calling menu name in Extensions Dynamics 365 for finance and operations
In Ax 2012 we get menu name with element.Args().CallMenu name, using taking decision on menu name.
But same logic we need to apply in Extension. But in D365 For finance and operations we did not overlay. Following code snippet helps me to implement similar logic in Extension.
[ExtensionOf(formStr(CustTable))]
final class IaLogisticsContactInfoGrid_Extension
{
/// <summary>
///
/// </summary>
/// <param name=”sender”></param>
/// <param name=”e”></param>
[FormEventHandler(formStr(LogisticsContactInfoGrid), FormEventType::Initialized)]
public static void LogisticsContactInfoGrid_OnInitialized(xFormRun sender, FormEventArgs e)
{
FormRun formRun = sender;
;
info(formRun.args().menuItemName());
}
}
Paging in Query X++ Dynamics 365 for finance and operations
For paging in X++ Query. There are three steps required. Rest of Query Code is same.
We have to set following things in Query data source
- Set Sort field in Query data Source.
- Paging position property of QueryRun is set to true.
- Add page range with starting position and number of records in QueryRun
Here is code snippet
QueryBuildRange qbr,qbrStartDate,qbrEndDate;
QueryBuildDataSource qbd;
IAPageSize EnumPageSize;QueryRun qr;
Query query = new Query();
Int pageSize = 2;
qbd = query.addDataSource(TableNum(ProjPlanVersion));
qbd.addOrderByField(fieldNum(ProjPlanVersion,HierarchyId));qr = new QueryRun(query);
qr.enablePositionPaging(true);
CurrentPageNumber =1;
startingposition = CurrentPageNumber * pagesize;
qr.addPageRange(startingposition, totalRows);
while(qr.next())
{
Info (“”);
}
How to capture Fiddler logs for Dynamics 365 for finance and operations
Here is another tip, how to capture for Finance and operations. You can download fiddlerCap from below link
http://www.telerik.com/fiddler/fiddlercap

