We have been seeing Attendance Non Skillz messages in the OpenFn inbox that do not have any participant data. These are currently causing the job to fail.
The specific request, in as few words as possible
Update the Attendance Non Skillz job to NOT sync any data if no participant attendance data is provided in the message. If state.data.form.attendance_list.update_participant_cases.item[] is missing from the message, instead of attempting to sync data to Salesforce, the job should end(pass) and log the message "No participant attendance data was provided".
Background, context, and business value
We have been seeing
Attendance Non Skillz
messages in the OpenFn inbox that do not have any participant data. These are currently causing the job to fail.The specific request, in as few words as possible
Update the
Attendance Non Skillz
job to NOT sync any data if no participant attendance data is provided in the message. Ifstate.data.form.attendance_list.update_participant_cases.item[]
is missing from the message, instead of attempting to sync data to Salesforce, the job should end(pass) and log the message "No participant attendance data was provided".state.json
adaptor
language-salesforce
trigger
Attendance Generic (Both Skillz & Non Skillz)
trigger on platformexpression.js
https://github.com/OpenFn/grassroot-soccer/blob/master/jobs/upsertAttendanceNonSkillz.js