Store Attribute based on an EventUpdated 21/04/2020

This snippet shows how you can write an attribute in the User profile when a specific event is received

// Loop over each event in this batch => {
  // If the right even happens
  if (e.event === "Added Picture"){
    const { tags } =;
    // Set a trait on the User
      has_added_picture: true
      picture_tags: tags