var app = Microsoft.Dynamics.ApplicationPlatform.Environment.EnvironmentFactory::GetApplicationEnvironment();
Str envURL= app.Infrastructure.HostUrl;
#D365F&O #Dynamics #Finance #URL
var app = Microsoft.Dynamics.ApplicationPlatform.Environment.EnvironmentFactory::GetApplicationEnvironment();
Str envURL= app.Infrastructure.HostUrl;
#D365F&O #Dynamics #Finance #URL
FormControlCancelableSuperEventArgs cancelSuperEventArgs = e as FormControlCancelableSuperEventArgs;
cancelSuperEventArgs.CancelSuperCall();
#D365FO #Dynamics #X++ #UI
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++