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
- _vendorAccount
Type: VendAccount Extended Data Type
The vendor account to search for.
- _itemId
Type: ItemId Extended Data Type
The item number to search for.
- _buyingLegalEntityDataAreaId
Type: CompanyId Extended Data Type
The data area of the buying legal entity to search for.
- _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.