Microsoft Dynamics AX Support

This blog contains posts by the Microsoft Dynamics AX Support teams Worldwide

Calling the FinancialDimensionValidation Service in AX 2012

Calling the FinancialDimensionValidation Service in AX 2012

Rate This
  • Comments 1

I had a request on a separate article to provide an example of how to call the FinancialDimensionValidationService.  The code below works on the demo data.  Enjoy!

FinancialDimensionValidationServiceClient client = new FinancialDimensionValidationServiceClient();

CallContext context = new CallContext();

context.Company = "ceu";

 

LedgerAccountContract lac = new LedgerAccountContract();

lac.parmMainAccount = "110110";

 

DimensionAttributeValueContract avc = new DimensionAttributeValueContract();

avc.parmName = "BusinessUnit";

avc.parmValue = "10";

 

lac.parmValues = new DimensionAttributeValueContract[1] { avc };

 

LedgerAccountValidationContract contract = new LedgerAccountValidationContract();

contract.parmLedgerAccount = lac;

contract.parmValidDate = Convert.ToDateTime("11/21/2012");

 

bool ret = client.validateLedgerAccount(context, contract);

Console.WriteLine(ret);

Console.ReadLine();

 

 

 

 

Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post
  • Is there a way to find which dimensions that are mandatory ?

    SPC

Page 1 of 1 (1 items)