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

Zobacz inne

Power Platform, Copilot, AI

Power Apps jako sposób na skrócenie kolejki zadań w IT

Czytaj artykuł
Text Link
Power Platform, Copilot, AI

Copilot w Microsoft Fabric w praktyce. 4 zadania, które AI wykona za analityka.

Czytaj artykuł
Text Link
Dynamics 365 F&O

Koniec LCS: jak przygotować się na migrację do Power Platform Admin Center

Czytaj artykuł
Text Link
Wróć do wszystkich

Szukasz partnera Microsoft? Porozmawiajmy o Twoim projekcie

Pracuj z zespołem, który zrealizował wdrożenia i projekty dla dziesiątek firm. Umów rozmowę wstępną i sprawdź:

Jak Dynamics 365 dopasować do procesów Twojej firmy, a nie odwrotnie

Które obszary warto zautomatyzować, żeby odzyskać czas i obniżyć koszty

Jak wygląda wdrożenie z Anegis krok po kroku: od analizy po wsparcie po starcie

Wybierz termin spotkania
Dziękujemy za wiadomość!
Oops! Something went wrong while submitting the form.
Microsoft AI Builder
Microsoft Copilot Studio
No items found.
No items found.
No items found.