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

  • _isDefault
    Type: NoYes Enumeration
    Indicates whether the service activity is the default service activity.
  • _outputProducts
    Type: container
    A container with the output products that are related to the service activity; 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.
  • _useOutputProductSize
    Type: NoYes Enumeration
    Indicates whether size is taken from the output product; optional.

See Also

Reference

PlanActivityService Table