• Skip to main content
  • Skip to primary sidebar
  • Home
  • About
  • Recommended Readings
    • 2022 Book Reading
    • 2023 Recommended Readings
    • Book Reading 2024
    • Book Reading 2025
  • Supply Chain Management Guide
  • PKM
  • Microsoft Excel

Ali Raza Zaidi

A practitioner’s musings on Dynamics 365 Finance and Operations

Dynamics Ax 7

Write Extensible Data Security (XDS) in Dynamics 365 Finance and Operation

September 3, 2024 by alirazazaidi

In D365, with Role based security we can restrict specific operations
to Certain user. Role based security will restrict the menu, forms and report.
It did not restrict certain records to view.

For example, They want to see only vendor with certain vendor group.
Customer for certain key market.
For this blog post, there is scenario that end user can be his created sales order.
For this requirement, we can use [[Extensible Data Security (XSD)]].

For this we require three elements.

AOT query.
Security Policy
And last one is Security Role.

First we create AOT Query and add Sales table and inner join with userInfo Table and make join with userInfo.Id with SalesTable.CreatedBy

Then add range in UserInfo and add (CurrentUserId())

Now Create a new role. That will used in Security policy and later used for End user.

Now add a new Security policy

and set following properties.

Set following properties.

Constraint Table Yes
Context Type RoleName

Operations All Operations

Primary Table set as SalesTable

Query set the name of Query

Set Role Name with Role we created in above role.

Build and Sync Database.

Open D365 Finance and Operations goes and Userinfo in System Administrator and assign to specific end user.
Remember, that either assign, Sales Clerk role or Sales Manager role.
Extensible Data Security (XDS) is not working for system administrator role.

Sales order list will comes with sales order with filter.

Legal Entity Specific overwrite On Main Account Dynamics 365 Finance and Operations

April 17, 2022 by alirazazaidi

I made video at update 10.0.24 Dynamics 365 Finance and operations

How hide SSRS Parameter RDP Menu Name Dynamics 365 Finance and Operations

June 9, 2021 by alirazazaidi

Again documentation

class XYZUIBuilder extends SrsReportDataContractUIBuilder
{

public void build()
{
    RecId       hcmWorkerRecId;
    str         name, menuItemName;
    FormBuildGroupControl grp;
    //Dialog    dialogLocal = this.dialog();
    XYZDC   rdpContract = this.dataContractObject();
    DialogField                             workerfieldDiff;
    DialogField  _FromDate,_Todate;

    // Add the pay cycle field.






    menuItemName = this.controller().parmArgs().menuItemName();
    workerfieldDiff = this.addDialogField(methodStr(XYZDC ,parmworkerrecid),rdpContract);
 //   hcmWorkerRecId = HcmWorker::userId2Worker(curUserId());
    if (menuItemName =="ESSReport")
    {

        workerfieldDiff.visible(false);
        workerfieldDiff.value(0);
    }
    _FromDate= this.addDialogField(methodStr(BEKenyaP9DC,parmFromDate),rdpContract);
    _Todate = this.addDialogField(methodStr(BEKenyaP9DC,parmToDate),rdpContract);

}

}

How to deploy non production database to Production server Dynamics 365 for finance and operation.

February 11, 2020 by alirazazaidi

This activity is not recommended, but most of the time,  before go live , master data is configured on UAT server and rapidly used. And most of functional consultant do not want this activity on production. Due to time saving as well as they are too much busy on different projects. Any how we can do this. There was no option available directly deploy or restore UAT database to production. For this we have to create service request to Microsoft. This is step by step guide.

So first step is to login into LCS and then open your project

From project detail form click on create new service

Machine generated alternative text:
365 for Operations Implementation Project 
5/31/2017 
and develop 
oroduction environment 
mock cutover 
system health 
7/15/2017 
Deploy 
3/25/2018 
Test 
5 
Operate 
Description 
The entire project team should pa 
te in a Go Live 
Health check ta ensure all asp 
f the system are 
operating as expected; bat 
ctionaly and technically. 
Task history 
ENVIRONMENTS 
Subscriptions available 
SeNice requests 
PRODUCTION 
Environment hsa state: Deployed 
Full details 
SANDBOX: STANDARD ACCEPTANCE TEST 
V Environment 
'at state: Deplcyed 
Full details 
SANDBOX: DEVELOP AND TEST 
V Environment 
dev state: Deployed 
Activate Wins-dws 
u etails

From Service request window. Go to service request and click on add new

Machine generated alternative text:
tecycle 
Services 
namvcs 
Operations Implementation Project 
.A Corporate 
m ces 
Work items 
Open work items 
Support issues 
Service requests 
Hotfix requests 
Extensibility support requests 
+ Add 
p Filter 
View environment details Reschedule Cancel 
Show cancelled requests 
Show finished requests 
onment name 
-uat 
Actionable by 
Sep.•ice Provider 
Provider 
Provider 
Downtime start 
1/4/2020 PM (UTC +04:00) 
10/9/2018 AM (UTC +04:00) 
10/3/2018 AM (UTC +04:00) 
Downtime end da 
144... 
63066 
61762 
Maintenance Operation 
New deployment 
New deployment 
New deployment 
Service request st... 
Requested 
Requested 
Requested

From popup select Sandbox to production

Machine generated alternative text:
ics 365 for Operations Implementation Project 
View environment details Reschedule Cancel 
Show cancelled requests 
Corporate Services LLC.) 
Show finished requests 
v"aintenance Operation 
Qew deployment 
Qew deployment 
Qew deployment 
Environment name 
Qui-I at 
Service request st... 
Requested 
Requested 
Requested 
Actionable by 
Provider 
Provide 
Pr 
Down 
10 
10 
Create request 
Select request type 
Production Point-in-time restore 
Restore the database of an environment with an 
automatic backup taken at an earlier date. 
Sandbox to production 
Move e copy of sandbox database into production for 
Go Live 
Other request 
Create other requests 
Cancel

Next window you have to select the time. Sandbox source and prefer down time.

At least 4 hours from the creation of service request and 5 hours minimum downtime required

Machine generated alternative text:
ished requests 
No 
Actionable by 
Provider 
Provider 
Provider 
Provider 
Provider 
Provider 
Provider 
Provider 
Request for sandbox to production 
Source environment name 
3-uat 
Target environment name 
hse 
Preferred downtime start date 
2/7/2020 9 v 
Preferred downtime end date 
2/8/2020 1 v 
All times are displayed in your 'ocel time zone (currently UTC 
Please be aware that other users will see the time localized 
into their time zones. 
Recommended! To produce a clean database refresh, we 
recommend performing this action when user activity and batch 
jobs are minimized in the source em.'lronment. 
I agree selecting a preferred downtime date and time does not 
I agree this request will result in a downtime of up to 4 hours wi 
I agree copying sandbox into production will OVERWRITE the pr 
Submit 
Cancel

Check all check boxes for agreed after that submit button will enabled .click on submit for Microsoft request.

They reserve downtime for 5 hours but 90 percent deployment will complete with in couple of hours.

How to get calling menu name in extensions Dynamics 365 for finance and operations

December 16, 2019 by alirazazaidi

Today is small tip, Many times, we have to took decision based on the name of menu  on which form is called. By getting menu name we can use same form for different purposes.  We can write logic based on current form called from which menu item.

Following is the code snippet helps you to achieve this.

[FormEventHandler(formStr(LogisticsContactInfoGrid), FormEventType::Initialized)]
    public static void LogisticsContactInfoGrid_OnInitialized(xFormRun sender, FormEventArgs e)
    {
        FormRun formRun = sender;
        
        if (formRun.args().menuItemName() == "CustomerLogisticsContactInfoGrid")
        {
            FormDataSource      LogisticsElectronicAddress_ds =formRun.dataSource("LogisticsElectronicAddress");
            LogisticsElectronicAddress_ds.InsertIfEmpty(true);
            LogisticsElectronicAddress_ds.object(fieldNum(LogisticsElectronicAddress, Locator)).mandatory(true);
        }

List of technical learning Paths on Microsoft Learn – Dynamics 365 for Finance and Operations

September 18, 2019 by alirazazaidi

Hi all, I just created a list of technical learning paths on Microsoft learn.
Amazingly simple, good and easy to learn.
Hope you all enjoy, learn and take benefit from these links
https://docs.microsoft.com/en-us/learn/paths/introduction-develop-finance-operations/
https://docs.microsoft.com/en-us/learn/paths/build-finance-operations/
https://docs.microsoft.com/en-us/learn/browse/?products=dynamics-finance-operations
https://docs.microsoft.com/en-us/learn/modules/connect-power-platform-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/integrate-azure-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/integration-concepts-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/data-integrations-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/integration-patterns-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/create-classes-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/design-deployment-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/performance-monitoring-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/build-forms-optimize-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/get-started-xpp-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/customize-visual-studio-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/manage-lifecycle-services-finance-operations/
https://docs.microsoft.com/en-us/learn/paths/extending-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/extend-elements-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/role-security-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/explore-extensions-framework-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/apply-basic-performance-optimization-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/manage-source-code-version-control-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/explore-test-framework-tools-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/develop-object-oriented-code-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/build-tables-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/build-edt-enums-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/build-workspaces-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/explore-reporting-tools-finance-operations/
https://docs.microsoft.com/en-us/learn/modules/build-reports-finance-operations/

On hand Inventory for Item X++ extensions Dynamics 365 for finance and operations

August 12, 2019 by alirazazaidi

Today is very small tip. Today is Eid day, Very warm wishes for Eid holidays.
Here is code snippet for  on hand inventory method. I wrote with extension.
For for extension. create a new class and add attribute on Extension fo Class.
[ExtensionOf(tableStr(PurchLine))]
public static class  PurchLine_Extension
{
    [SysClientCacheDataMethodAttribute(true)]  //This attribute will cache your display method.
    public static display Real  MYOnHand( PurchLine _this)
    {
        InventOnHand inventOnhand;
        InventDim       InventDim;
        InventDimParm inventDimParm;
        inventDimParm.initFromInventDim(_this.inventDim());
        inventOnHand = InventOnhand::newParameters(_this.Itemid,_this.InventDim(),inventDimParm);
        return inventOnHand.availPhysical();
    }
}

Clean up routines in Dynamics 365 for finance and Operations

August 5, 2019 by alirazazaidi

How to load number sequence class on UAT or Production server Dynamics 365 for finance and operations.

June 16, 2019 by alirazazaidi

In Dev machine, we can call runnable class to load number sequence, but UAT or production server Visual Studio is not in our access.

In UAT or production server we can run number sequence load class in browser.  with following command.

usnconeboxax1aos.cloud.onebox.dynamics.com[company]&mi=SysClassRunner&cls=[job/runnable class name]

For current example, if my class name is xyzNumberSeqLoadModule

you can add class name after basic url as

SysClassRunner&cls=xyzNumberSeqLoadModule

usnconeboxax1aos.cloud.onebox.dynamics.com&mi=SysClassRunner&cls=xyzNumberSeqLoadModule

 

 

 

Unable to download report as PDF Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync Dynamics 365 for finance and operations

May 22, 2019 by alirazazaidi

During Save as pdf custom report throw following error.

 
Unable to connect to the remote server at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions requestOptions, OperationContext operationContext) at Microsoft.DynamicsOnline.Infrastructure.Components.TableAccessor.TableStorageAccessor.PerformOperation(CloudStorageAccount storageAccount, String tableName, Func`1 operation) at Microsoft.DynamicsOnline.Infrastructure.Components.TableAccessor.TableStorageAccessor.AddRecord[T](CloudStorageAccount storageAccount, String tableName, T record) at Microsoft.DynamicsOnline.Infrastructure.Components.SharedServiceUnitStorage.SharedServiceUnitStorage.UploadData(SharedServiceUnitStorageData data, Stream stream) at
 
It was problem that Azure Storage emulator was not running on my machine. 
For this I have to open window start and write there Azure Storage emulator.
After it searched, click and run the Azure storage Emulator.

 In my Case  emulator Version was out date. I have to download it from Microsoft Cloud. After running that service. Issue was resolved. Report successfully download as pdf.
Reference : https://docs.microsoft.com/en-us/azure/storage/common/storage-use-emulator
Next Page »

Primary Sidebar

About

I am Dynamics AX/365 Finance and Operations consultant with years of implementation experience. I has helped several businesses implement and succeed with Dynamics AX/365 Finance and Operations. The goal of this website is to share insights, tips, and tricks to help end users and IT professionals.

Legal

Content published on this website are opinions, insights, tips, and tricks we have gained from years of Dynamics consulting and may not represent the opinions or views of any current or past employer. Any changes to an ERP system should be thoroughly tested before implementation.

Categories

  • Accounts Payable (2)
  • Advance Warehouse (2)
  • Asset Management (3)
  • Azure Functions (1)
  • Books (6)
  • Certification Guide (3)
  • Customization Tips for D365 for Finance and Operations (62)
  • D365OF (59)
  • Data Management (1)
  • database restore (1)
  • Dynamics 365 (58)
  • Dynamics 365 for finance and operations (135)
  • Dynamics 365 for Operations (165)
  • Dynamics AX (AX 7) (134)
  • Dynamics AX 2012 (274)
  • Dynamics Ax 2012 Forms (13)
  • Dynamics Ax 2012 functional side (16)
  • Dynamics Ax 2012 Reporting SSRS Reports. (31)
  • Dynamics Ax 2012 Technical Side (52)
  • Dynamics Ax 7 (65)
  • Exam MB-330: Microsoft Dynamics 365 Supply Chain Management (7)
  • Excel Addin (1)
  • Favorites (12)
  • Financial Modules (6)
  • Functional (8)
  • Implementations (1)
  • Lifecycle Services (1)
  • Logseq (4)
  • Management Reporter (1)
  • Microsoft Excel (4)
  • MS Dynamics Ax 7 (64)
  • MVP summit (1)
  • MVP summit 2016 (1)
  • New Dynamics Ax (19)
  • Non Defined (9)
  • Note taking Apps (2)
  • Obsidian (3)
  • Personal Knowledge Management (2)
  • PKM (13)
  • Power Platform (6)
  • Procurement (5)
  • procurement and sourcing (5)
  • Product Information Management (4)
  • Product Management (6)
  • Production Control D365 for Finance and Operations (10)
  • Sale Order Process (10)
  • Sale Order Processing (9)
  • Sales and Distribution (5)
  • Soft Skill (1)
  • Supply Chain Management D365 F&O (3)
  • Tips and tricks (278)
  • Uncategorized (165)
  • Upgrade (1)
  • Web Cast (7)
  • White papers (4)
  • X++ (7)

Copyright © 2025 · Magazine Pro On Genesis Framework · WordPress · Log in