Event element_completed – Zapier

Last modified on September 11, 2023 at 6:18 pm

Overview

The element_completed event is fired when a user completes one element of an offering.

Names

NameContext
Element CompletedZapier Trigger Name
element_completedDigitalChalk Internal
dc_element_completedZapier Trigger Key

Payload

{
    "event" : "offering_completed",
    "date" : "2015-12-18T21:27:12Z",
    "source" : "SELF",
    "user" : {
        "id" : "1c4d8e666ead4110979300efbad8fde1",
        "firstName" : "Poe",
        "lastName" : "Dameron",
        "username" : "poe.dameron@spaceforce.lor",
        "email" : "poe.dameron@spaceforce.lor",
        "locale" : "en"
    },
    "element" : {
        "type" : "assignment",
        "id" : "a56ebec60dfc499d9808e19c9912e84f",
        "title" : "Your Z-6 Jetpack",
        "grade" : 95.0,
        "passed" : true,
        "question" : "Explain the Z-6 Jetpack you have been issued and its function.",
        "response" : "The Z-6 Jetpack is the preferred jetpack of Mandalorian commandos across the galaxy, from the more organized sects like Death Watch to the outliers on the fringe, like my father Jango Fett and myself. They are fast and nimble and can maintain sustained flight as well as short bursts for tactical advantages in combat. The jetpacks can be equipped with a top-loaded rocket firing missile that could turn the tide in many a conflict. Their significant disadvantage is their vulnerability to external impact damage. One sharp blow with a stick could conceivably ignite the jetpack, causing all manner of unwanted performance that could lead to significant bodily harm or even death."
    },
    "offering" : {
        "id" : "c2da446631154d7c8b5f38fd1b47f958",
        "title" : "Leadership in battle - 10 lessons from the heros of Leia Organa"
    }
}
  • event – always “offering_registered” for this type of event
  • date – the datetime that the event was generated
  • source – SELF if a user generated this event, or ADMIN if an admin generated this event
  • user – the user that was registered
  • user.id – the DigitalChalk internal user id
  • user.firstName – the user’s first name
  • user.lastName – the user’s last name
  • user.username – the user’s username
  • user.email – the user’s email address
  • user.locale – the locale for the user
  • element – the element that was completed
  • element.type – the element type that was completed. One of:
    ‘ASSIGNMENT’, ‘CERTIFICATE’, ‘CHALKBOARD’, ‘FILE’, ‘ILT’, ‘SCO’, ‘TEST’, ‘WEBARCHIVE’
  • element.id – the DigitalChalk internal element id
  • element.title – the title of the completed element
  • element.grade – the grade achieved by the student for this element
  • element.passed – true (if the student passed the element) or false (if the student failed the element)
  • element.question – the prompt given to the student, if the type was an assignment
  • element.response – the response given by the student, if the type was an assignment
  • offering – the offering that the student registered for
  • offering.id – the DigitalChalk internal offering id
  • offering.title – the title of the registered offering

Filters

Filters can be applied to events / triggers so that only certain events are fired when they match the filters.  Filters can be set up inside the Zapier UI for the trigger.

Filter NameZapier UI LabelDescription
user.email.endswith Email ends withFilters events to only those where the user’s email ends with the value given.  Useful to range off new users by domain (e.g. “@mycompany.com”)
offering.title.equalsOffering Title EqualsFilters events to only those where the offering title is exactly equal to the value given
element.type.equals
Element Type Equals
The type of element that was completed.  One of:
‘ASSIGNMENT’, ‘CERTIFICATE’, ‘CHALKBOARD’, ‘FILE’, ‘ILT’, ‘SCO’, ‘TEST’, ‘WEBARCHIVE’
element.title.equals
Element Title Equals
Filters events to only those where the title of the element matches exactly the given value
element.passed.equals 
Element Passed Equals
Must be true or false. Matches events where the element was passed (true) or failed (false).
element.grade.lessthan 
Element Grade Less Than
Element grade must be less than the given value
element.grade.greaterthan 
Element Grade Greater Than
Element grade must be greater than the given value
element.grade.equals 
Element Grade Equals
Element grade must be exactly the given value