Share via


PlanActivityService::findMatchingAgreementLine Method

Finds an active AgreementLine record based on a vendor account, item number, and plan

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server public static AgreementLine findMatchingAgreementLine(
            VendAccount _vendorAccount, 
            ItemId _itemId, 
            CompanyId _buyingLegalEntityDataAreaId, 
            Plan _plan)

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static AgreementLine findMatchingAgreementLine(
            VendAccount _vendorAccount, 
            ItemId _itemId, 
            CompanyId _buyingLegalEntityDataAreaId, 
            Plan _plan)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static AgreementLine findMatchingAgreementLine(
            VendAccount _vendorAccount, 
            ItemId _itemId, 
            DataAreaId _itemDataAreaId, 
            Plan _plan)

  Microsoft Dynamics AX 2012 (FPK)
          client server public static AgreementLine findMatchingAgreementLine(
            VendAccount _vendorAccount, 
            ItemId _itemId, 
            DataAreaId _itemDataAreaId, 
            Plan _plan)

  Microsoft Dynamics AX 2012 (SYS)
          client server public static AgreementLine findMatchingAgreementLine(
            VendAccount _vendorAccount, 
            ItemId _itemId, 
            DataAreaId _itemDataAreaId, 
            Plan _plan)

Run On

Called

Parameters

  • _plan
    Type: Plan Table
    The plan that is used for filtering the effective period of the agreement line.

Return Value

Type: AgreementLine Table
A AgreementLine record if an active agreement line matching the filtering criteria is found; otherwise, an empty buffer.

See Also

Reference

PlanActivityService Table