BadgeWorkflow wrapped object with camel case properties. Each properties maps to a field on the SObject that has _ for each capital letter. Ex. (iconLocation -> Icon_Location__c)
Maps To: OrderApi__Badge_Workflow__c
Trigger the assignment and unassignment of Badges to Contacts using Badge Workflow
Method Summary
Modifier and Type | Method and Description |
---|---|
void | BadgeWorkflow() |
void | getInstance() |
void | getInstance(OrderApi__Badge_Workflow__c BadgeWorkflow) |
void | getInstance(OrderApi__Badge_Workflow__c[] BadgeWorkflows) |
void | fromSObject(SObject BadgeWorkflowObj) |
void | toSObject() |
Method Detail
This class supports the following methods:
global BadgeWorkflow()
global static BadgeWorkflow getInstance()
global static BadgeWorkflow getInstance(OrderApi__Badge_Workflow__c BadgeWorkflow)
Parameters
Name | Type | Description |
---|---|---|
BadgeWorkflow | OrderApi__Badge_Workflow__c | undefined |
global static BadgeWorkflow[] getInstance(OrderApi__Badge_Workflow__c[] BadgeWorkflows)
Parameters
Name | Type | Description |
---|---|---|
BadgeWorkflows | List<OrderApi__Badge_Workflow__c> | undefined |
global override void fromSObject(SObject BadgeWorkflowObj)
Parameters
Name | Type | Description |
---|---|---|
BadgeWorkflowObj | SObject | undefined |
global override SObject toSObject()
Properties
Name | Type | Description |
---|---|---|
id | Id | |
name | String | |
assignedContacts | Boolean | System Calculated/Override Checked when the Type field set to "Assigned Contacts". |
autoExpire | Boolean | When checked, the Badge will automatically unassign itself from the Contact record when the Assignment record becomes in active. "Is Active" is unchecked. Defaults unchecked. |
badgeType | Id | Required Link to the related Badge Type |
item | Id | Link to the related Item |
lineAccount | Boolean | System Calculated/Override Checked when the Type field set to "Line Account". |
lineContact | Boolean | System Calculated/Override Checked when the Type field set to "Line Contact". |
type | String | Required Select "Line Contact" to assign the Badge to the purchasing Customer as defined in the "Contact" lookup field on the Sales Order Line. Select "Assigned Contacts" to give the Badge to all "Active" assigned Contacts. |