PlanActivityService::createServiceActivity Method
Creates a new record in the PlanActivityService table.
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
server public static void createServiceActivity(
RecId _planActivity,
ItemId _serviceItemId,
DataAreaId _serviceItemDataAreaId,
InventDimId _serviceItemInventDimId,
DataAreaId _serviceItemInventDimDataAreaId,
RecId _serviceUnitOfMeasure,
PlanActivityServiceRatio _serviceRatio,
PlanActivityServiceQuantityBase _serviceQuantityCalculationBase,
NoYes _isDefault,
RecId _purchAgreementHeader,
[container _outputProducts,
ShipCarrierId _carrierId,
DataAreaId _carrierIdDataAreaId,
NoYes _useOutputProductConfiguration,
NoYes _useOutputProductColor,
NoYes _useOutputProductStyle,
NoYes _useOutputProductSize])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static void createServiceActivity(
RecId _planActivity,
ItemId _serviceItemId,
DataAreaId _serviceItemDataAreaId,
InventDimId _serviceItemInventDimId,
DataAreaId _serviceItemInventDimDataAreaId,
RecId _serviceUnitOfMeasure,
PlanActivityServiceRatio _serviceRatio,
PlanActivityServiceQuantityBase _serviceQuantityCalculationBase,
NoYes _isDefault,
RecId _purchAgreementHeader,
[container _outputProducts,
ShipCarrierId _carrierId,
DataAreaId _carrierIdDataAreaId,
NoYes _useOutputProductConfiguration,
NoYes _useOutputProductColor,
NoYes _useOutputProductStyle,
NoYes _useOutputProductSize])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static void createServiceActivity(
RecId _planActivity,
ItemId _serviceItemId,
DataAreaId _serviceItemDataAreaId,
InventDimId _serviceItemInventDimId,
DataAreaId _serviceItemInventDimDataAreaId,
RecId _serviceUnitOfMeasure,
PlanActivityServiceRatio _serviceRatio,
PlanActivityServiceQuantityBase _serviceQuantityCalculationBase,
NoYes _isDefault,
RecId _purchAgreementHeader,
[container _outputProducts,
ShipCarrierId _carrierId,
DataAreaId _carrierIdDataAreaId,
NoYes _useOutputProductConfiguration,
NoYes _useOutputProductColor,
NoYes _useOutputProductStyle,
NoYes _useOutputProductSize])
Microsoft Dynamics AX 2012 (FPK)
server public static void createServiceActivity(
RecId _planActivity,
ItemId _serviceItemId,
DataAreaId _serviceItemDataAreaId,
InventDimId _serviceItemInventDimId,
DataAreaId _serviceItemInventDimDataAreaId,
RecId _serviceUnitOfMeasure,
PlanActivityServiceRatio _serviceRatio,
PlanActivityServiceQuantityBase _serviceQuantityCalculationBase,
NoYes _isDefault,
RecId _purchAgreementHeader,
[container _outputProducts,
ShipCarrierId _carrierId,
DataAreaId _carrierIdDataAreaId,
NoYes _useOutputProductConfiguration,
NoYes _useOutputProductColor,
NoYes _useOutputProductSize])
Microsoft Dynamics AX 2012 (SYS)
server public static void createServiceActivity(
RecId _planActivity,
ItemId _serviceItemId,
DataAreaId _serviceItemDataAreaId,
InventDimId _serviceItemInventDimId,
DataAreaId _serviceItemInventDimDataAreaId,
RecId _serviceUnitOfMeasure,
PlanActivityServiceRatio _serviceRatio,
PlanActivityServiceQuantityBase _serviceQuantityCalculationBase,
NoYes _isDefault,
RecId _purchAgreementHeader,
[container _outputProducts,
ShipCarrierId _carrierId,
DataAreaId _carrierIdDataAreaId,
NoYes _useOutputProductConfiguration,
NoYes _useOutputProductColor,
NoYes _useOutputProductSize])
Run On
Server
Parameters
- _planActivity
Type: RecId Extended Data Type
The record ID of the associated PlanActivity record.
- _serviceItemId
Type: ItemId Extended Data Type
The service item ID.
- _serviceItemDataAreaId
Type: DataAreaId Extended Data Type
The data area ID of the service item ID.
- _serviceItemInventDimId
Type: InventDimId Extended Data Type
The invent dim ID of the service item.
- _serviceItemInventDimDataAreaId
Type: DataAreaId Extended Data Type
The data area ID of the invent dim.
- _serviceUnitOfMeasure
Type: RecId Extended Data Type
The record ID of the associated UnitOfMeasure record.
- _serviceRatio
Type: PlanActivityServiceRatio Extended Data Type
The service ratio.
- _serviceQuantityCalculationBase
Type: PlanActivityServiceQuantityBase Enumeration
The service quantity calculation base.
- _isDefault
Type: NoYes Enumeration
Indicates whether the service activity is the default service activity.
- _purchAgreementHeader
Type: RecId Extended Data Type
The record ID of the associated PurchAgreementHeader record.
- _outputProducts
Type: container
A container with the output products that are related to the service activity; optional.
- _carrierId
Type: ShipCarrierId Extended Data Type
The carrier ID of the carrier that is associated with the service activity; optional.
- _carrierIdDataAreaId
Type: DataAreaId Extended Data Type
The carrier data area ID; optional.
- _useOutputProductConfiguration
Type: NoYes Enumeration
Indicates whether configuration is taken from the output product; optional.
- _useOutputProductColor
Type: NoYes Enumeration
Indicates whether color is taken from the output product; optional.
- _useOutputProductStyle
Type: NoYes Enumeration
- _useOutputProductSize
Type: NoYes Enumeration
Indicates whether size is taken from the output product; optional.