Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

[K-12] Recording a Positive Behavior On Case Object #217

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a217b92
initial commit
kdy618 May 11, 2020
d43980c
update to yml file
kdy618 May 11, 2020
8fcbab1
testing
kdy618 May 11, 2020
69eade8
working version
kdy618 May 12, 2020
a9e925d
fix for picklist values in alpha
kdy618 May 12, 2020
5dde8e4
fix in trial org
kdy618 May 12, 2020
476a75f
removed extra values
kdy618 May 15, 2020
3a5965f
Merge 86f7912dd77d51ca1202f485db73108675f254cd into feature/kdy/posit…
salesforce-org-metaci[bot] May 19, 2020
638a8ad
initial commit
kdy618 May 27, 2020
77d5631
Merge branch 'feature/positiveBehavior' into feature/positiveBehavior…
MatthewBlanski May 28, 2020
6951dd2
Added pre-existing category values to case
MatthewBlanski May 28, 2020
2c73643
Merge branch 'feature/positiveBehavior' into feature/positiveBehavior…
MatthewBlanski May 28, 2020
89fbfe2
alpha
kdy618 May 28, 2020
3199fbb
Added case incident to package xml
MatthewBlanski May 28, 2020
dea7e1e
Merge branch 'feature/positiveBehavior__kdyCase' of github.com:Salesf…
MatthewBlanski May 28, 2020
e5b4fcc
updated case_location_values
kdy618 May 28, 2020
3ef073f
Merge b6f0b6fbac8d1dde552884f4fe0bc98f9e9d89fa into feature/positiveB…
salesforce-org-metaci[bot] May 28, 2020
d34933b
Update cumulusci.yml
jofsky May 29, 2020
8f6bddb
Update cumulusci.yml
jofsky May 29, 2020
71c0037
Merge 842fad4790a5b4a02cb81d8ceb795dc93b01488d into feature/positiveB…
salesforce-org-metaci[bot] May 29, 2020
a45ead4
Merge branch 'feature/positiveBehavior' into feature/positiveBehavior…
MatthewBlanski May 29, 2020
d6c3514
changed task to picklist entries
MatthewBlanski May 29, 2020
a2979d4
Merge branch 'feature/positiveBehavior' into feature/positiveBehavior…
MatthewBlanski Jun 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 98 additions & 9 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,107 @@ tasks:
- fullName: "Verbal Recognition"
label: "Verbal Recognition"
add_before: "Other"

add_case_category_values:
description: Adds additional picklist values to the Category field.
class_path: tasks.picklists.AddPicklistEntries
group: 'K-12: Metadata'
options:
picklists: Case.hed__Category__c
entries:
- fullName: "Other"
label: "Other"
- fullName: "State Offense"
label: "State Offense"
add_before: "Other"
- fullName: "School Violation"
label: "School Violation"
add_before: "State Offense"
- fullName: "School Code of Conduct"
label: "School Code of Conduct"
add_before: "School Violation"
- fullName: "Cooperation"
label: "Cooperation"
add_before: "School Code of Conduct"
- fullName: "Integrity"
label: "Integrity"
add_before: "School Code of Conduct"
- fullName: "Leadership"
label: "Leadership"
add_before: "School Code of Conduct"
- fullName: "Respect"
label: "Respect"
add_before: "School Code of Conduct"
- fullName: "Teamwork"
label: "Teamwork"
add_before: "Other"

add_case_location_values:
description: Adds additional picklist values to the Location field.
class_path: tasks.add_picklist_values.AddPicklistValues
class_path: tasks.picklists.AddPicklistEntries
group: 'K-12: Metadata'
options:
sobject: Case
field: hed__Location__c
values: "Administrative Offices Area,Athletic Field or Playground,Auditorium,Bus Stop,Cafeteria Area,Classroom,Computer Lab,Hallway or Stairs,Library/Media Center,Locker Room or Gym Areas,Off Campus,On Campus,Online,Parking Lot,Restroom,School Bus,Stadium,Unknown,Walking to or from School"
existing_values: "Administrative Offices Area,Athletic Field or Playground,Auditorium,Bus Stop,Cafeteria Area,Classroom,Computer Lab,Hallway or Stairs,Library/Media Center,Locker Room or Gym Areas,Off Campus,On Campus,Online,Parking Lot,Restroom,School Bus,Stadium,Unknown,Walking to or from School"
recordtypes: Incident
restricted: True
sorted: True
namespaced: False
picklists: Case.hed__Location__c
entries:
- fullName: "Other"
label: "Other"
- fullName: "On Campus"
label: "On Campus"
add_before: "Other"
- fullName: "Off Campus"
label: "Off Campus"
add_before: "On Campus"
- fullName: "Administrative Offices Area"
label: "Administrative Offices Area"
add_before: "Off Campus"
- fullName: "Athletic Field or Playground"
label: "Athletic Field or Playground"
add_before: "Off Campus"
- fullName: "Auditorium"
label: "Auditorium"
add_before: "Off Campus"
- fullName: "Bus Stop"
label: "Bus Stop"
add_before: "Off Campus"
- fullName: "Cafeteria Area"
label: "Cafeteria Area"
add_before: "Off Campus"
- fullName: "Classroom"
label: "Classroom"
add_before: "Off Campus"
- fullName: "Computer Lab"
label: "Computer Lab"
add_before: "Off Campus"
- fullName: "Hallway or Stairs"
label: "Hallway or Stairs"
add_before: "Off Campus"
- fullName: "Library/Media Center"
label: "Library/Media Center"
add_before: "Off Campus"
- fullName: "Locker Room or Gym Areas"
label: "Locker Room or Gym Areas"
add_before: "Off Campus"
- fullName: "Online"
label: "Online"
add_before: "On Campus"
- fullName: "Parking Lot"
label: "Parking Lot"
add_before: "Other"
- fullName: "Restroom"
label: "Restroom"
add_before: "Other"
- fullName: "School Bus"
label: "School Bus"
add_before: "Other"
- fullName: "Stadium"
label: "Stadium"
add_before: "Other"
- fullName: "Unknown"
label: "Unknown"
add_before: "Other"
- fullName: "Walking to or from School"
label: "Walking to or from School"
add_before: "Other"

add_behavior_involvement_values:
description: Adds additional picklist values to the Role field.
Expand Down Expand Up @@ -201,6 +288,8 @@ flows:
2:
task: add_behavior_response_type_values
3:
task: add_case_category_values
4:
task: add_case_location_values
4:
task: add_behavior_involvement_values
Expand Down
165 changes: 165 additions & 0 deletions src/layouts/Case-K12 Kit Positive Behavior Layout.layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<excludeButtons>Submit</excludeButtons>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>false</detailHeading>
<editHeading>false</editHeading>
<label>Fields</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>ContactId</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>hed__Category__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Subject</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Description</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>hed__Occurrence_Date__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>hed__Location__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>OwnerId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>AccountId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Priority</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>Status</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Origin</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>SuppliedEmail</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsLeftToRight</style>
</layoutSections>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>true</detailHeading>
<editHeading>false</editHeading>
<label>Custom Links</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<style>CustomLinks</style>
</layoutSections>
<platformActionList>
<actionListContext>Record</actionListContext>
<platformActionListItems>
<actionName>Edit</actionName>
<actionType>StandardButton</actionType>
<sortOrder>0</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewNote</actionName>
<actionType>QuickAction</actionType>
<sortOrder>1</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewTask</actionName>
<actionType>QuickAction</actionType>
<sortOrder>2</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewEvent</actionName>
<actionType>QuickAction</actionType>
<sortOrder>3</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>LogACall</actionName>
<actionType>QuickAction</actionType>
<sortOrder>4</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>SendEmail</actionName>
<actionType>QuickAction</actionType>
<sortOrder>5</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewCase</actionName>
<actionType>QuickAction</actionType>
<sortOrder>6</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>PrintableView</actionName>
<actionType>StandardButton</actionType>
<sortOrder>7</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>ChangeOwnerOne</actionName>
<actionType>StandardButton</actionType>
<sortOrder>8</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Clone</actionName>
<actionType>StandardButton</actionType>
<sortOrder>9</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Delete</actionName>
<actionType>StandardButton</actionType>
<sortOrder>10</sortOrder>
</platformActionListItems>
</platformActionList>
<relatedContent>
<relatedContentItems>
<layoutItem>
<behavior>Readonly</behavior>
<field>ContactId</field>
</layoutItem>
</relatedContentItems>
<relatedContentItems>
<layoutItem>
<behavior>Readonly</behavior>
<field>AccountId</field>
</layoutItem>
</relatedContentItems>
</relatedContent>
<relatedLists>
<fields>NAME</fields>
<fields>hed__Contact__c</fields>
<fields>hed__Role__c</fields>
<relatedList>hed__Behavior_Involvement__c.hed__Case__c</relatedList>
</relatedLists>
<relatedObjects>ContactId</relatedObjects>
<relatedObjects>AccountId</relatedObjects>
<showEmailCheckbox>false</showEmailCheckbox>
<showHighlightsPanel>false</showHighlightsPanel>
<showInteractionLogPanel>false</showInteractionLogPanel>
<showKnowledgeComponent>false</showKnowledgeComponent>
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>true</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00hS0000000ZPG2</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
</summaryLayout>
</Layout>
1 change: 1 addition & 0 deletions src/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<members>Account-K12 Kit Organization Layout</members>
<members>Account-K12 Kit Sports Organization Layout</members>
<members>Case-K12 Kit Incident Layout</members>
<members>Case-K12 Kit Positive Behavior Layout</members>
<members>Contact-K12 Kit Faculty Staff Layout</members>
<members>Contact-K12 Kit Guardian Layout</members>
<members>Contact-K12 Kit Student Layout</members>
Expand Down
Loading