{
"sections": [
"title",
"description",
"fields",
"associated_objects",
"wsdl_segment",
"field_reference"
],
"title": "WorkBadgeDefinition - Data API",
"description": "Represents the attributes of a badge including the badge name, description, and image. Each WorkBadge record must have a lookup to a WorkBadgeDefinition since badge attributes (like badge name) are derived from the WorkBadgeDefinition object.",
"fields_columns": [
"type",
"properties",
"description",
"relationship_name",
"relationship_type",
"refers_to"
],
"fields": {
"Description": {
"type": "textarea",
"properties": "Create, Update",
"description": "Limit: 4000 characters. The description of the badge and what it means to receive this badge.",
"required": true
},
"GivenBadgeCount": {
"type": "int",
"properties": "Filter, Group, Nillable, Sort",
"description": "The number of badges given per user or across all users. Note: This field can’t be added in a list view or referenced in a formula field."
},
"ImageUrl": {
"type": "url",
"properties": "Create, Filter, Group, Sort, Update",
"description": "This is the badge image that will be displayed in the UI. Use DocumentID or ImageURL.",
"required": true
},
"IsActive": {
"type": "boolean",
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
"description": "Represents whether a WorkBadgeDefinition is active and available in the UI and API."
},
"IsCompanyWide": {
"type": "boolean",
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
"description": "Represents a special class of badges known as Company Badges. Company badges are visible to the entire company and visible in specific list view filters. Note: If this field is selected, everyone within the user’s network will be able to give the badge automatically. If this field is not selected, people with sharing must be added to the badge’s access list in order to give the badge."
},
"IsLimitPerUser": {
"type": "boolean",
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
"description": "Indicates whether the badge limit is per user (true) or across all users (false). The default value is false."
},
"IsRewardBadge": {
"type": "boolean",
"properties": "Defaulted on create, Filter, Group, Sort",
"description": "Indicates whether the badge is a reward badge (true) or not (false)."
},
"LastReferencedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The time stamp that indicates when the current user last viewed a record that is related to this WorkBadgeDefinition."
},
"LastViewedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The time stamp that indicates when the current user last viewed this WorkBadgeDefinition. If this value is null, this record might have been only referenced (LastReferencedDate) and not viewed."
},
"LimitNumber": {
"type": "int",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The badge limit per user or across all users."
},
"LimitStartDate": {
"type": "date",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The start date of the badge limit. The date can be reset to the current date."
},
"Name": {
"type": "string",
"properties": "Create, Filter, Group, idLookup, Sort, Update",
"description": "Name of the Badge. Label: Badge Title.",
"required": true
},
"NetworkId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The ID of the community that this WorkBadgeDefinition is associated with. This field is available only if digital experiences is enabled in your org."
},
"OwnerId": {
"type": "reference",
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
"description": "Salesforce User ID for User who is the Owner of the WorkBadgeDefinition record (usually the creator of the record) This is a polymorphic relationship field.",
"relationship_name": "Owner",
"relationship_type": "Lookup",
"refers_to": "Group, User"
},
"RewardFundId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "Salesforce unique ID for the WorkRewardFund that is associated with this WorkBadgeDefinition. WorkBadgeDefinition records with a RewardFundID indicate a Reward Badge."
}
},
"associated_objects": "This object has the following associated objects. Unless noted, they are available in the same API version as this object.\n\n- **WorkBadgeDefinitionChangeEvent (API version 62.0)**: Change events are available for the object.\n- **WorkBadgeDefinitionFeed**: Feed tracking is available for the object.\n- **WorkBadgeDefinitionHistory**: History is available for tracked fields of the object.\n- **WorkBadgeDefinitionOwnerSharingRule**: Sharing rules are available for the object.\n- **WorkBadgeDefinitionShare**: Sharing is available for the object.",
"wsdl_segment": "```xml\n\n \n \n \n \n\n\n \n\n\n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n```",
"field_reference": {
"CreatedById": {
"field_label": "Created By ID",
"type": "reference",
"length": "18"
},
"CreatedDate": {
"field_label": "Created Date",
"type": "datetime"
},
"CurrencyIsoCode": {
"field_label": "Currency ISO Code",
"type": "picklist",
"length": "3"
},
"Description": {
"field_label": "Description",
"type": "textarea",
"length": "4000"
},
"GivenBadgeCount": {
"field_label": "Given Badge Count",
"type": "int",
"digits": "9"
},
"Id": {
"field_label": "Badge ID",
"type": "id",
"length": "18"
},
"ImageUrl": {
"field_label": "Image URL",
"type": "url",
"length": "255"
},
"IsActive": {
"field_label": "Active",
"type": "boolean"
},
"IsCompanyWide": {
"field_label": "Company Badge",
"type": "boolean"
},
"IsDeleted": {
"field_label": "Deleted",
"type": "boolean"
},
"IsLimitPerUser": {
"field_label": "Limit Per User",
"type": "boolean"
},
"IsRewardBadge": {
"field_label": "Reward Badge",
"type": "boolean"
},
"LastModifiedById": {
"field_label": "Last Modified By ID",
"type": "reference",
"length": "18"
},
"LastModifiedDate": {
"field_label": "Last Modified Date",
"type": "datetime"
},
"LastReferencedDate": {
"field_label": "Last Referenced Date",
"type": "datetime"
},
"LastViewedDate": {
"field_label": "Last Viewed Date",
"type": "datetime"
},
"LimitNumber": {
"field_label": "Limit Number",
"type": "int",
"digits": "9"
},
"LimitStartDate": {
"field_label": "Limit Start Date",
"type": "date"
},
"Name": {
"field_label": "Badge Name",
"type": "string",
"length": "255"
},
"NetworkId": {
"field_label": "Network ID",
"type": "reference",
"length": "18"
},
"OwnerId": {
"field_label": "Owner ID",
"type": "reference",
"length": "18"
},
"SystemModstamp": {
"field_label": "System Modstamp",
"type": "datetime"
}
},
"field_reference_columns": [
"field_label",
"type",
"length",
"digits"
]
}