PCRuntimeLibrary::getModelXML Method [AX 2012]

Gets the XML representation of the specified product model that is compatible with the product configuration.

NoteNote

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 str getModelXML(
            PCProductConfigurationModel _model, 
           [PCProductConfiguration _configuration, 
            PCPriceMethod _priceMethod, 
            PCRuntimePriceModelInstance _runtimePriceModelInstance])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static str getModelXML(PCProductConfigurationModel _model, [PCProductConfiguration _configuration])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static str getModelXML(PCProductConfigurationModel _model, [PCProductConfiguration _configuration])

  Microsoft Dynamics AX 2012 (FPK)
          server public static str getModelXML(PCProductConfigurationModel _model, [PCProductConfiguration _configuration])

  Microsoft Dynamics AX 2012 (SYS)
          server public static str getModelXML(PCProductConfigurationModel _model, [PCProductConfiguration _configuration])

Run On

Server

Parameters

_model
Type: PCProductConfigurationModel Table
The product model from which to extract the generated XML.
_configuration
Type: PCProductConfiguration Table
The instance of the configuration that will be loaded with the current configuration; optional.
_priceMethod
Type: PCPriceMethod Enumeration
_runtimePriceModelInstance
Type: PCRuntimePriceModelInstance Class

Return Value

Type: str
A string that contains the generated XML representation of the specified product model.

ExceptionCondition
Error

The specified model is not valid.

Show: