Skip to content

Commit

Permalink
Incomplete_Record__c to Student_Record_Complete__c
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMolchagin committed Oct 15, 2024
1 parent d0af3ec commit a351615
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"info": {
"_postman_id": "d39e6469-8818-4fba-9ca4-9ddded1fa17f",
"name": "Scores - Student Registration Steps",
"description": "When a new student created, \"Incomplete_Record__c\" ist set to \\`True\\`. (Step 1)\n\n\"Incomplete_Record__c\" will be set to \\`False\\` once Step 4 is performed and the waiver is sgined.",
"description": "When a new student created, \"Student_Record_Complete__c\" ist set to \\`False\\`. (Step 1)\n\n\"Student_Record_Complete__c\" will be set to \\`True\\` once Step 4 is performed and the waiver is sgined.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "34720049"
},
Expand Down
4 changes: 2 additions & 2 deletions src/main/mule/coach.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ payload map ( payload01 , indexOfPayload01 ) -> {
Contact__r.Gender__c,
Contact__r.Ethnicity__c,
Contact__r.Zip_First_Five_Digits__c,
Contact__r.Incomplete_Record__c,
Contact__r.Student_Record_Complete__c,
Contact__c,
CreatedById,
CreatedDate,
Expand Down Expand Up @@ -544,7 +544,7 @@ payload map ( payload01 , indexOfPayload01 ) -> {
Allergies: payload01.Contact__r.Allergies__c default "",
CurrentAddress: payload01.Contact__r.npsp__Current_Address__c default "",
HomeAddress: payload01.Contact__r.npe01__Home_Address__c default "",
StudentIncompleteRecord: (payload01.Contact__r.Incomplete_Record__c as String) as Boolean default true,
StudentRecordComplete: (payload01.Contact__r.Student_Record_Complete__c as String) as Boolean default false,
ParentInfo: {
FirstName: payload01.Contact__r.Parent_First_Name__c default "",
LastName: payload01.Contact__r.Parent_Last_Name__c default "",
Expand Down
16 changes: 8 additions & 8 deletions src/main/mule/contacts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ payload.items[0].payload]]>
Liability__c: vars.originalPayload.LiabilityWaiver,
Media_Release__c: vars.originalPayload.MediaReleaseWaiver,
Data_Release__c: vars.originalPayload.DataReleaseWaiver,
Incomplete_Record__c: true
Student_Record_Complete__c: false
}]]]]>


Expand Down Expand Up @@ -1062,7 +1062,7 @@ substring(cleanedPhoneNumber, stringSize - 4, stringSize)]]>
Liability__c,
Media_Release__c,
Data_Release__c,
Incomplete_Record__c
Student_Record_Complete__c
WHERE
Contact_Type__c = 'SCORES Student'
AND (Parent_Phone_01__c LIKE '%:phoneNumberLast4Digits'
Expand Down Expand Up @@ -1148,7 +1148,7 @@ payload.searchRecords map ( payload01 , indexOfpayload01 ) -> {
LiabilityWaiver: payload01.record.Liability__c as String default "" ,
MediaReleaseWaiver: payload01.record.Media_Release__c as String default "" ,
DataReleaseWaiver: payload01.record.Data_Release__c as String default "",
IncompleteRecord: payload01.record.Incomplete_Record__c as String default ""
StudentRecordComplete: payload01.record.Student_Record_Complete__c as String default ""
}]]>


Expand Down Expand Up @@ -1232,7 +1232,7 @@ payload.searchRecords map ( payload01 , indexOfpayload01 ) -> {
Liability__c,
Media_Release__c,
Data_Release__c,
Incomplete_Record__c
Student_Record_Complete__c
FROM
Contact
WHERE
Expand Down Expand Up @@ -1314,7 +1314,7 @@ payload map ( payload01 , indexOfPayload01 ) -> {
LiabilityWaiver: payload01.Liability__c as String default "" ,
MediaReleaseWaiver: payload01.Media_Release__c as String default "" ,
DataReleaseWaiver: payload01.Data_Release__c as String default "" ,
IncompleteRecord: payload01.Incomplete_Record__c as String default ""
StudentRecordComplete: payload01.Student_Record_Complete__c as String default ""
}]]>


Expand Down Expand Up @@ -1399,7 +1399,7 @@ output application/java
(Data_Release__c: payload.DataReleaseWaiver) if(payload.DataReleaseWaiver?),
(School_Attending__c: payload.SchoolName) if(payload.SchoolName?),
(AccountId: payload.AccountId) if(payload.AccountId?),
(Incomplete_Record__c: vars.incompleteRecord) if(vars.incompleteRecord?) // we can get it from another flow, but not from the payload
(Student_Record_Complete__c: vars.CompleteRecord) if(vars.CompleteRecord?) // we can get it from another flow, but not from the payload
}]]]>


Expand Down Expand Up @@ -1544,7 +1544,7 @@ payload map ( payload01 , indexOfPayload01 ) -> {
<choice doc:id="rbsmfh" doc:name="Choice">
<when expression="#[payload.WaiverHistory != null]">
<set-variable doc:id="gjtppd" doc:name="Set variable" value="#[payload.WaiverHistory]" variableName="WaiverHistory"></set-variable>
<set-variable doc:id="pdlkbq" doc:name="Set variable" value="#[false]" variableName="IncompleteRecord"></set-variable>
<set-variable doc:id="pdlkbq" doc:name="Set variable" value="#[true]" variableName="CompleteRecord"></set-variable>
<flow-ref name="patch:\contacts\(contactId):application\json:salesforce-data-api-config"></flow-ref>
<flow-ref name="get:\contacts\(contactId):salesforce-data-api-config"></flow-ref>
<ee:transform doc:id="bc80392c-09c1-43c1-2c5b-ebf8dd509785" doc:name="Create response" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">
Expand All @@ -1556,7 +1556,7 @@ payload map ( payload01 , indexOfPayload01 ) -> {
output application/json
---
{
message: "Success. Waiver Signed. `Incomplete_Record__c` set to false",
message: "Success. Waiver Signed. `Student_Record_Complete__c` set to true",
WaiverHistory: vars.WaiverHistory,
data: payload
}]]>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/api/datatypes.raml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ types:
type: string
ZipCode:
type: string
StudentIncompleteRecord:
StudentRecordComplete:
type: boolean
RecordType:
type: string
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/api/enrollment-examples.raml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enrollment-examples:
"Birthdate": "2009-01-01",
"Gender": "Female",
"Ethnicity": "Hispanic/Latino",
"StudentIncompleteRecord": false,
"StudentRecordComplete": false,
"ZipCode": "94601",
"Date": "2019-08-23"
}
2 changes: 1 addition & 1 deletion src/main/resources/api/salesforce-data-api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ uses:
/finishRegistration:
post:
displayName: Finish Student Registration
description: Finish student registration by signing waiver and marking `Incomplete_Record__c` as false.
description: Finish student registration by signing waiver and marking `Student_Record_Complete__c` as true.
body:
application/json:
type: object
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/api/teamseason-full-examples.raml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ teamseason-examples:
"LastName": "Gomez Soliz",
"Birthdate": "2009-01-01",
"Gender": "Female",
"StudentIncompleteRecord": false,
"StudentRecordComplete": false,
"Ethnicity": "Hispanic/Latino",
"ZipCode": "94601",
"Date": "2019-08-23"
Expand Down

0 comments on commit a351615

Please sign in to comment.