No items found.

Simple way to extend AIF outbound data in AX 2012

Let’s assume that we need to extend standard ASN Packing Slip XML with contact name and phone. Related AIF service class is using standard query AxdASN. The root data source table is CustPackingSlipJour.

‍

Extending standard ASN Packing Slip XML

There is related class axCustPackingSlipJour. We need just to add to this class parm methods returning wanted values: parmContactPersonName and parmContactPersonPhone.

public ContactPersonName parmContactPersonName(ContactPersonName _contactPersonName = ”)

{

return custPackingSlipJour.salesTable().contactPersonName();

}

public LogisticsElectronicAddressLocator parmContactPersonPhone(LogisticsElectronicAddressLocator _contactPersonPhone = ”)

{

return LogisticsElectronicAddress::findRecId(DirPerson::find(custPackingSlipJour.salesTable().ContactPerson().Party).PrimaryContactPhone).Locator;

}

We need to refresh AIF services to see the added parameters.

‍

Refreshing AIF services

After refreshing changes in the related schema should be visible:

‍

Related schema is visible

We need to enable elements in Document Data Policies in Outbound Ports:

‍

Elements in Document Data Policies

and finally new elements should be visible in XML file:

‍

Elements in XML file

See more

Migration

SAP ECC to Dynamics 365 migration for Irish companies: timeline and cost in EUR

Read article
Text Link
Managed services

Who can take over Dynamics 365 Finance and Operations application management for a company in Sweden?

Read article
Text Link
Migration

Dynamics AX 2012 to Dynamics 365 migration in Norway: timeline and cost

Read article
Text Link
Back to all

Looking for a Microsoft partner? Let's talk about your project

Work with a team that has delivered implementations and projects for dozens of companies. Schedule an introductory call and see:

How to tailor Dynamics 365 to your company's processes, rather than the other way around

Which areas are worth automating to save time and reduce costs

Here is the step-by-step implementation process with Anegis: from analysis to post-launch support

Select a meeting time
Thank you for your message!
Oops! Something went wrong while submitting the form.
Microsoft AI Builder
Microsoft Copilot Studio
No items found.
No items found.
No items found.