You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<salesforce:querydoc:name="Select Query with sessionId from SCORES_Task Object"doc:id="d60136d3-1af9-4f3e-8d6d-55a308800149"config-ref="Salesforce_Config"target="tasksResponse"targetValue="#[output application/json
335
+
---
336
+
payload]">
337
+
<salesforce:salesforce-query><![CDATA[SELECT Id, Session__c FROM SCORES_Task__c WHERE Session__c = ':sessionId'
<salesforce:querydoc:name="Select Query with sessionId from Attendence object"doc:id="cfe08f1a-cc1a-4102-bf59-a6aaeb021ec5"config-ref="Salesforce_Config"target="attendanceResponse"targetValue="#[output application/json
"message" : "There are students attended this session, therefore the session is active and cannot be removed",
423
+
"message" : "There are students attended this session OR there are associated assessment responses, therefore the session is active and cannot be removed",
<set-variablevalue="The task with the given ID does not exist."doc:name="Set Custom Error Message"doc:id="68a345db-1898-4a73-bf7f-90cd763f2c2e"variableName="errorCustomMessage" />
169
+
<raise-errordoc:name="Raise error"doc:id="917b410d-1572-47d4-ab06-e7e3525a7f2b"type="CUSTOM:CUSTOM_ERROR"description="Something went wrong while retrieving the task record." />
170
+
</when>
171
+
</choice>
165
172
<choicedoc:name="Do we retrieve attendances?"doc:id="c3f4c5d9-605f-443c-a94e-ec85c809b45c"doc:description='When session is empty, but task type is "Take Attendance", we throw an error.' >
<set-variablevalue="The given session doesn’t have a date or does not exist. Cannot proceed with creating a task and attendance records."doc:name="Set Custom Error Message"doc:id="d3132527-7cda-480d-b28d-3aa2fe12c502"variableName="errorCustomMessage" />
192
-
<raise-errordoc:name="Raise error"doc:id="fe77e915-6316-4296-bf94-dfb8b47eb37b"type="CUSTOM:CUSTOM_ERROR"description="Something went wrong while creating a task record." />
199
+
<raise-errordoc:name="Raise error"doc:id="fe77e915-6316-4296-bf94-dfb8b47eb37b"type="CUSTOM:CUSTOM_ERROR"description="Something went wrong while retrieving the task record." />
0 commit comments