TrvExpGuest::createNewGuest Method
Creates a new record in this 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
client server public static TrvExpGuest createNewGuest(
TrvExpGuestId _name,
Name _company,
TrvGuestTitle _title,
TrvGuestGiftAmount _amount,
[TrvGuestType _type,
TrvHcmWorkerRecId _creatingWorker])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static TrvExpGuest createNewGuest(
TrvExpGuestId _name,
Name _company,
TrvGuestTitle _title,
TrvGuestGiftAmount _amount,
[TrvGuestType _type])
Run On
Called
Parameters
- _name
Type: TrvExpGuestId Extended Data Type
Name of new guest, goes into GuestId column.
- _company
Type: Name Extended Data Type
Company (or organization) of new guest, goes into Company column.
- _title
Type: TrvGuestTitle Extended Data Type
Title of new guest, goes into Title column.
- _amount
Type: TrvGuestGiftAmount Extended Data Type
Amount of new guest, goes into Amount column. Only applies to gift recipients.
- _type
Type: TrvGuestType Enumeration
Internal user or MyGuest. Internal users are those picked for "my coworkers", the others are of type MyGuest.
- _creatingWorker
Type: TrvHcmWorkerRecId Extended Data Type
Creating worker refers to the person adding the guest.
Return Value
Type: TrvExpGuest Table
The record created.
Remarks
Changes made to the optional parameters of the method.