← Voltar para Flows

Availability and Calendar Sync Flow

Name
Availability and Calendar Sync Flow
Description
Configurar disponibilidade e sincronizar calendário externo.
Validated
Not Validated

Steps

  1. 1
    upsertAvailabilityRules(Calendar Service)
    Input Mapping
    rules: "$context.rules"
    userId: "$context.userId"
    ownerId: "$context.ownerId"
    timezone: "$context.timezone"
    authToken: "$context.authToken"
    ownerType: "$context.ownerType"
    idempotencyKey: "$context.idempotencyKey"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successStep 2: connectExternalCalendarYes
  2. 2
    connectExternalCalendar(Calendar Service)
    Input Mapping
    userId: "$context.userId"
    icalUrl: "$context.icalUrl"
    ownerId: "$context.ownerId"
    provider: "$context.provider"
    syncMode: "$context.syncMode"
    authToken: "$context.authToken"
    ownerType: "$context.ownerType"
    googleAuthCode: "$context.googleAuthCode"
    webhookCallbackUrl: "$context.webhookCallbackUrl"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successStep 3: sendNotificationYes
  3. 3
    sendNotification(Notification Service)
    Input Mapping
    data: "$step1.data"
    channel: "in_app"
    priority: "low"
    template: "availability_updated"
    recipientId: "$context.userId"
    correlationId: "$context.correlationId"
    idempotencyKey: "availability_updated:$context.ownerId:$context.eventId"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successYes