GetLookupArgumentModel
Argument model for getting lookup values
Remarks
The following lookup types are supported
- CodeSet, returns the code set or table lookup specified in LookupArgument
- SubAssignees, gives you a list of sub assignees that can be assigned to a an activity. You have to member of the SFSEC_SubContractorAdminsitrator security role in order to get this list.
- Attachments, returns a list of attachments registered for an activity. Is this lookup if you want to get the attachment list without loading the entire activity. When you use this parameter you have to set
LookupArgument to a combined activity id
- TableLookup, returns lookup values for a TableLookup. LookupArgument should be set to CombinedActivityId;CustomPropertyId
- AttachmentCategory, gives you a list of valid categories for an attachment
- SerialNumber, returns a list of serial number for a given part on a given location. LookupArgument must be set to a rather complex lookup key consisting of a combined requisition line id (requisition number:line number),
stock number, part number, function name and serial number phase, use semicolon to separate each entry. Each entry can be obtained from the RequisitionLineEventRule.
Note that this lookup will be removed 2025.01.15, use SerialNumber2 instead.
- SerialNumber2, returns a list of serial number for a given part on a stock. LookupArgument must be set to a rather complex lookup key consisting of database, contract, stock and part number,
use semicolon to separate each entry.
- RequisitionTypes, returns a list of valid requisition types for a given activity. LookupArgument must be set to valid combined activity id.
- Country, returns a list of valid countries. LookupArgument does not have to set
- Stocks, returns a list of local stocks. LookupArgument must contain database
Note that ActivitySearchResultFields are no longer a valid argument, use LookupController.GetSearchFields(LookupController.GetSearchFieldArgumentModel)instead
Properties
| Name | Description | Type | Additional information |
| LookupType |
Get or set lookup type
|
string
|
None.
|
| LookupArgument |
Get or sets additional information required by the lookup.
|
string
|
None.
|
| TicketId |
Gets or sets the ticket id
|
string
|
None.
|
| Culture |
Gets or sets culture, if not specified we will use culture set on user.
|
string
|
None.
|