Optional Weekly Activity
May 27th, 2024
- The weekly activities query has added two more keys in response, is_mandatory, and is_active

-  is_mandatory shows if the weekly activity is optional or not.

- is_active shows if the weekly activity is removed or not.

- The weekly activity query will take public_facing_only as an argument only to show active weekly activity i.e. weekly activity which is not removed. (for YOP).

example:
query Opportunity {
  opportunity(id: "35") {
    id
    weekly_activities(public_facing_only: true) {
      id
      is_mandatory
  is_active
}
}
}

- mutation to remove optional weekly activities.
example:
mutation RemoveOptionalWeekActivities {
  removeOptionalWeekActivities(
    opportunity_id: "35"
    weekly_activities_ids: ["1", "10"]
  ) {
    activity
    id
    is_active
    is_mandatory
    is_templated
    week
  }
}

X
Crafted by