AfResourceServiceClass.createResource Method [AX 2012]
Creates a resource in Microsoft Dynamics AX.
Syntax
public AfDataContainer createResource(
AfDataContainer _compoundDataContainer,
SyncEntityId _syncEntityId,
SyncTransId _syncTransId,
SyncAppId _sourceAppId)
Run On
Server
Parameters
- _compoundDataContainer
Type: AfDataContainer Class
The container that is passed from the sync service.
- _syncEntityId
Type: SyncEntityId Extended Data Type
The entity ID that identifies the record. In this case it is the resource UID.
- _syncTransId
Type: SyncTransId Extended Data Type
The unified identity for the sync transaction.
- _sourceAppId
Type: SyncAppId Extended Data Type
The current application to which Microsoft Dynamics AX is synchronizing. Indicates the project server application ID by default.
Return Value
Type: AfDataContainer Class
The container that has the resource information. An empty container if the resource cannot be found.