D365FO
https://community.dynamics.com/365/financeandoperations/b/ajitdynamics365
Tuesday, March 10, 2026
D365 AI ERP Agent With MCP (D365 ERP, Outlook, Analytics)
Thursday, February 22, 2024
How to get a user group from a workflow work item
Below code snippet to get the user group for a workflow work item (if user group used for work item assignment)
WorkflowStepTable stepTable;
str userGroup;
select stepTable where stepTable.ElementId == WorkflowworkItemTable(buffer).ElementId;
userGroup = WorkflowConfigPersonPicker::newAssignmentTable(stepTable.workflowAssignmentTable()).parmParticipantTokenValue();
Wednesday, October 13, 2021
How To Get Dynamics 365 F&O URL through code - X++
var app = Microsoft.Dynamics.ApplicationPlatform.Environment.EnvironmentFactory::GetApplicationEnvironment();
Str envURL= app.Infrastructure.HostUrl;
#D365F&O #Dynamics #Finance #URL
How to cancel form control super method call
FormControlCancelableSuperEventArgs cancelSuperEventArgs = e as FormControlCancelableSuperEventArgs;
cancelSuperEventArgs.CancelSuperCall();
#D365FO #Dynamics #X++ #UI
Tuesday, February 23, 2021
How to get a list of tables (data sources) in an Entity through code - X++
public void tableList(TableName _tableName)
{
DictDataEntity dictEntity = new DictDataEntity(tableName2Id(_tableName));
int dataSourceCount;
Query query;
QueryBuildDataSource dataSourceName;
str entityTableName;
if (dictEntity)
{
query = dictEntity.query();
if (query.dataSourceCount() >= 1)
{
dataSourceCount = query.dataSourceCount();
}
for(int datasource=1;datasource<=dataSourceCount;datasource++)
{
dataSourceName = query.dataSourceNo(datasource);
entityTableName = tableId2Name(dataSourceName.table());
info(entityTableName );
}
}
}
#D365F&O #DataEntities #X++
Wednesday, June 3, 2020
How to List Down Data Entities with Data Management Enabled- D365F&O
Tuesday, January 14, 2020
Power BI - How to embed a PBIX using Form in D365FO and add in a workspace.
We have an option in D365 to embed PowerBI visuals and run through workspaces. Here I am providing steps to do the same.
1. Create a PowerBI report using power BI desktop and save the file, .pbix file will be saved. You can refer below youTube tutorial




