Assignment wrapped object with camel case properties. Each properties maps to a field on the SObject that has _ for each capital letter. Ex. (fullName -> Full_Name__c)
Maps To: OrderApi__Assignment__c

Assignments track Contacts assigned to purchases of Items (Only available when Items are available for Assignment - determined by the parent Item Class)

Method Summary

Modifier and Type Method and Description
Assignment getInstance()
Assignment getInstance(OrderApi__Assignment__c asgn)
List<Assignment> getInstance(List assignmentObjs)
List<AssignmentRole> getInstance(List assignmentObjs,String className)
void Assignment()

Method Detail

This class supports the following methods:

global static Assignment getInstance()

Get base instance with no initial S0bject.


global static Assignment getInstance(OrderApi__Assignment__c asgn)

Get base instance with an initial SObject.
Parameters

Name Type Description
asgn OrderApi__Assignment__c OrderApi__Assignment__c

global static List<Assignment> getInstance(List<OrderApi__Assignment__c> assignmentObjs)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
assignmentObjs List<OrderApi__Assignment__c> List

global static List<Assignment> getInstance(List<OrderApi__Assignment__c> assignmentObjs,String className)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
assignmentObjs List<OrderApi__Assignment__c> undefined
className String undefined

global Assignment()

Assignment Constructor that should not be called directly.


Properties

Name Type Description
id Id
contact Id Required Link to assigned Contact record
term Id Link to related Term for the subscribing customer.
item Id System Calculated Link to related Item.
subscription Id Link to related Subscription for the subscribing customer.
subscriptionLine Id System Calculated Link to related Subscription Line.
salesOrderLine Id Required Assignments must be linked to a source Sales Order Line
assignmentRole Id System Calculated Required Override Link to the Role for the assigned Contact on record.
fullName String Contact full name.
isActive Boolean When checked, the Contact is considered "Active". Defaults checked.
isPrimary Boolean When checked, the Assignment is considered "Primary".
assignedDate Date System Calculated Required Override Defaults to the parent Sales Order Line.
unassignedDate Date The date the Contact was unassigned.