Wednesday, January 18, 2023

How to get all dimension values assigned to Customer / Vendor- Dynamics 365 for finance and operations



public static void main(Args _args)
{

DefaultDimensionView defaultDimensinView;
CustTable custTable;
select DefaultDimension from custTable where custTable.AccountNum ==’CUS-000001′;
while select Name, DisplayValue from defaultDimensinView
where defaultDimensinView.DefaultDimension == custTable.DefaultDimension
{

Info (defaultDimensinView.Name +” ” + defaultDimensinView.DisplayValue);

}

}

No comments:

Post a Comment