Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a relationship to the specified TaxTrans record.
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
public void addTaxTransRelationship(
TaxTransRecId _taxTransRecId,
TaxTransRelationshipType _taxRelationshipType,
[CompanyId _companyId])
Microsoft Dynamics AX 2012 R2 (SYS)
public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)
Microsoft Dynamics AX 2012 (FPK)
public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)
Microsoft Dynamics AX 2012 (SYS)
public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)
Run On
Called
Parameters
- _taxTransRecId
Type: TaxTransRecId Extended Data Type
The record ID of the TaxTrans record.
- _taxRelationshipType
Type: TaxTransRelationshipType Enumeration
The tax relationship type.
- _companyId
Type: CompanyId Extended Data Type
The company ID of the TaxTrans record; optional.
Exceptions
Exception | Condition |
---|---|
Error | The ID of the TaxTrans record is zero. |
Error | The ID of the TaxTrans record is zero. |
Error | The record ID of the TaxTrans record is zero. -or- The company ID is an empty string. |