web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

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

Ali Zaidi Profile Picture Ali Zaidi 4,655

Hi all, today I have small, tip. here is code snippet help you to show default dimension values selected for customer, vendor, sales order, Purchase order and everything that can hold select the default dimension.

 

class TestWastageLogic
{
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = “_args”>The specified arguments.</param>
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);

}

}

}

output is as follow

 

Comments

*This post is locked for comments