Worked Examples

Apply scheduling workflows — Contact and Engagement Platform

Apply governed scheduling workflows to coordinate private meeting requests, Microsoft Teams invitations, calendar synchronization, reminders, and follow-up activities without exposing internal calendars or confidential participant information. This technical guide provides procedures for managing scheduling permissions, time-zone accuracy, meeting status transitions, and verifiable communication records across the Contact and Engagement Platform.

ProductContact and Engagement PlatformComponentMicrosoft Teams & Calendar Coordination / Scheduling WorkflowsUpdatedNovember 21, 2026Reading time20 minutes

Application: Contact and Engagement Platform
Component: Microsoft Teams & Calendar Coordination / Scheduling Workflows
Source-reviewed plugin candidate: 2.0.2 (calendar schema 1.0.1; reliability patch v1.3.1)
Article type: How-to / Technical Procedure
Verification: Source reviewed, offline synthetic checks passed; deployed verification pending
Estimated reading time: 18–22 minutes

Scheduling in Sustainable Catalyst is a permissioned engagement workflow—not a public booking calendar. A public inquiry can express meeting intent, an operator can prepare and publish a set of approved time slots, and the sender can respond through a protected portal. Finalization, Microsoft Teams links, reminders, cancellation, post-meeting records, and optional Microsoft Graph operations have separate controls. This procedure demonstrates those boundaries and supplies reproducible evidence checks.

Goal

Coordinate legitimate meeting requests while keeping organizer availability, participant identities, internal notes, and Microsoft Graph credentials out of public interfaces. The measurable outcome is a correctly authorized and traceable scheduling lifecycle: an accepted slot maps to a valid UTC interval, the sender sees only approved fields, the meeting link is allowed and revocable, reminders require authorized review, and local/remote calendar states are reconciled without silent duplication.

Requirements

  1. An authorized staging WordPress deployment with a matching Contact and Engagement plugin build; record the installed version and migration health before testing. The source-reviewed build declares WordPress 6.5+, PHP 8.1+, plugin 2.0.2, and calendar schema 1.0.1.
  2. A synthetic inquiry with explicit meeting request and calendar invitation consent. Preserve the consent version and time; consent to discuss a request does not authorize arbitrary participant invitations.
  3. Active or invited sender-portal access for publishing meeting slots, and the appropriate operator capabilities. sc_intake_view_workflow permits the calendar workspace; changes require relevant workflow/finalization permissions.
  4. One or more future approved slots, a valid IANA time zone, meeting purpose, duration, and a supported Microsoft Teams URL when required by workflow settings. No real personal records are necessary for acceptance tests.
  5. For optional Graph integration: a scoped organizer mailbox, a properly configured single-tenant Entra application, a securely stored credential, and authorized human-triggered Graph operations. Manual Teams finalization is a valid alternative.
  6. Authenticated, protected audit storage and an approved backup/recovery procedure. Test cancellation, rescheduling, DST transitions, reminders, cache behavior, and role boundaries in staging before asserting a release is verified.

Symptoms

Symptom Primary diagnostic Expected boundary
The public form appears to book a meeting Compare submitted meeting_request with stored scheduling_status Inquiry request is not an external calendar event
Offered time shifts by one hour Compare local IANA time, stored UTC and DST transition Nonexistent and ambiguous clock times must be rejected
Sender cannot accept an offer Inspect offer status, expiry and portal access Only live, valid, scoped offers may be accepted
A scheduled meeting has no usable link Check allowed Teams host and finalization state Accepted without link may remain accepted_pending_link
Reminders send without review Inspect reminder status and associated communication Background may prepare; it must not send
Old link remains after cancellation Check sender projection, Teams link and Graph state Local link revoked; remote deletion separate
Reschedule shows wrong remote time Compare Graph sync status and UTC intervals Explicit reconciliation required
Unprivileged visitor sees meeting details Check anonymous route, cache and sender field allowlist Private organizer and participant data must remain hidden

Architecture and source-reviewed limits

The public form writes a private inquiry through SC_EI_Form_Handler; the workflow repository holds meeting offers; SC_EI_Calendar_Repository coordinates details, reminders, rescheduling, completion and cancellation; the sender portal exposes a restricted projection. Microsoft Graph integration is optional and does not replace WordPress as the canonical engagement record. The plugin has a separate legacy inquiry scheduling_status and a meeting-offer status. They are related but use different vocabularies; for example the inquiry can be requested while an offer is draft. Do not conflate them.

Procedure

  1. Identify the inquiry, approved purpose, meeting type, operator, client time zone, consent record and audience. Do not paste customer details into development logs.
  2. Confirm the deployed build and role capabilities, then open the operator’s Calendar Coordination or Workflow workspace.
  3. Create a meeting offer with one or more future approved time slots; default to a draft while verifying private metadata and sender-portal entitlement.
  4. Publish the offer for an invited or active sender portal only when it is ready; publishing is not calendar booking.
  5. Have the synthetic sender accept a proposed slot (or request an alternative). Reconcile the selected UTC interval and status.
  6. Finalize with a supported Microsoft Teams link manually or through an authorized Graph operation; check the sender-safe projection and calendar invitation.
  7. Review any generated reminders; only mark them sent when linked to a suitable recorded/accepted outbound communication.
  8. Rehearse rescheduling, cancellation, and completion; verify link revocation, reminder cleanup, follow-up tasks and any remote-event reconciliation.
  9. Run independent negative tests, collect aggregate-only evidence, and record observed and expected outcomes before registering a last-verified version.

1. Confirm the installed environment and capabilities

Record the source SHA independently of the installed plugin version. A source-reviewed 2.0.2 is not evidence that the server currently runs the same files. The following commands are read-only except for ordinary shell expansion; run them only from an authorized host. Replace placeholders with your deployment configuration, never with credentials in a public KB article.

WP_PATH="/absolute/path/to/wordpress"  # example only; use the authorized local path
wp --path="$WP_PATH" plugin get sustainable-catalyst-engagement-intake --field=version
wp --path="$WP_PATH" eval 'echo "Calendar schema: ".SC_EI_CALENDAR_SCHEMA_VERSION.PHP_EOL;'
wp --path="$WP_PATH" cron event list --fields=hook,next_run_gmt | grep sc_ei_calendar || true

If the calendar schema or migration contract is missing, stop mutation tests and investigate the installed release. The expected reminder cron hook is sc_ei_calendar_process_reminders. The sc_intake_view_workflow capability is a view permission, not a replacement for sc_intake_finalize_meetings on protected administrative operations.

2. Collect meeting intent without exposing a calendar

The public intake form may accept a preferred contact method, Teams identity, meeting request, time zone, availability windows, duration and authorized participants. It does not publish organizer availability, allocate a slot, or create a Teams event. A meeting request of yes or unsure requires an IANA time zone and explicit calendar_invite_consent in the reviewed handler. The privacy acknowledgment and authorization-to-share gates remain independently required.

{
  "fixture_type": "synthetic_public_intake",
  "meeting_request": "yes",
  "timezone": "America/Chicago",
  "calendar_invite_consent": true,
  "requested_contact_method": "teams",
  "expected_initial_scheduling_status": "requested",
  "expected_graph_event_count": 0
}

This is an illustrative test assertion, not the raw public API request schema: actual forms additionally require a signed session, nonce, attribution, required inquiry fields, and rate-limit checks. The sample must not be posted directly to production.

3. Prepare, approve and publish an offer

The canonical create_meeting_offer() implementation checks that the inquiry exists and has not been erased and that the sender portal is active or invited. It accepts future slots, a bounded duration and an allowed Microsoft Teams URL. The optional setting workflow_require_teams_url can require a link before publication. The record begins as draft when explicitly requested as an unpublished offer and changes to offered only through an authorized publish action.

State Permitted next action Evidence to preserve
draft Review fields, validate slots, publish when ready Actor, source version, row version
offered Sender accepts, declines or asks for another time Offer expiry, slot key, portal access
accepted_pending_link Finalize approved Teams link or Graph link Selected UTC interval, sender acceptance
scheduled Coordinate/remind, reschedule, complete or cancel Finalized link, graph status, reminder records
completed/canceled Historical, restricted projection Follow-up/cancellation reason, audit trail

A published offer supersedes competing offers for the inquiry. Before publishing, review the consequences for currently available slots. Posting an offer is a deliberate operator decision, not an implicit approval based on a form checkbox.

4. Capture the sender’s selection securely

The protected portal’s respond_to_meeting() accepts only a live offered record whose expiration has not passed. accept requires an offered slot that has not elapsed. If an approved Teams link is already present, the offer becomes scheduled; otherwise it becomes accepted_pending_link. The sender can instead submit a meaningful alternative-time note or decline. The handler increments row_version, writes workflow/audit evidence, and updates the inquiry’s scheduling summary. A sender choice does not authorize additional participants or automatic publication of an internal calendar.

5. Convert local civil time to UTC without ambiguity

Use a named time zone, not a bare UTC offset, for future meetings: offsets change across daylight-saving transitions. The platform’s SC_EI_Teams::parse_local_datetime() rejects invalid local dates, skipped spring-forward hours and repeated fall-back hours. For a typical valid Chicago summer example, 2027-07-15 10:30 is 2027-07-15 15:30:00 UTC.

from scheduling_checker import local_to_utc
print(local_to_utc("2027-07-15T10:30", "America/Chicago"))
# 2027-07-15 15:30:00+00:00
for clock in ("2027-03-14T02:30", "2027-11-07T01:30"):
    try:
        local_to_utc(clock, "America/Chicago")
    except ValueError as exc:
        print(clock, "rejected:", exc)

The Python function is an independent reference implementation with Python zoneinfo; it is not a substitute for the PHP production parser. In staging, compare both at spring-forward, fall-back, UTC offset changes, leap dates, and nonexistent zones. Store UTC times with a reliable time-zone identifier for display; never silently choose the earlier or later occurrence of a repeated clock time.

6. Finalize an approved Microsoft Teams meeting

From an accepted offer, use the authorized finalization action to supply a valid Microsoft Teams meeting link. The reviewed implementation accepts official Teams domains via SC_EI_Teams::is_teams_url(). This guide’s independent validator additionally requires HTTPS to avoid insecure links. Both should reject lookalike hosts such as teams.microsoft.com.attacker.invalid. Never paste secrets or internal organizer data into public fields.

# Offline-only URL assertions; no real meeting or network requests.
python3 - <<'PY'
from scheduling_checker import teams_url_ok
assert teams_url_ok('https://teams.microsoft.com/l/meetup-join/synthetic')
assert not teams_url_ok('https://teams.microsoft.com.attacker.invalid/meeting')
assert not teams_url_ok('http://teams.microsoft.com/l/meetup-join/synthetic')
print('Approved HTTPS host gate: PASS')
PY

Finalization records the authorized actor and time and initiates local reminder scheduling. It is not equivalent to creating a remote calendar event; Microsoft Graph integration has additional permissions and reconciliation behavior.

7. Enforce sender visibility and participant authorization

The sender-facing calendar snapshot is an allowlist, not a verbatim copy of the internal meeting record. It may include approved title, meeting type, purpose, status, time zone, confirmed UTC interval, approved Teams URL, agenda, preparation requests, sender summary, sender next step, post-meeting summary, cancellation reason, and reschedule count. Organizer names/emails, participant addresses, private decisions, internal notes, Graph identifiers, and follow-up ownership remain private. Verify these boundaries with an anonymous session, a low-privilege account, and a permitted portal session, including cached responses. Permission checks must apply to every retrieval path; the public form’s ability to submit an inquiry does not confer private read access.

{
  "status": "scheduled",
  "timezone": "America/Chicago",
  "selected_start_utc": "2027-07-15T15:30:00Z",
  "teams_url": "https://teams.microsoft.com/l/meetup-join/synthetic"
}

This is an illustrative sender-safe subset. A production response should be obtained only through an authorized test session and must be checked against the installed source. Do not place the full internal meeting record in public HTML, browser logs, analytics, a calendar feed, or an error report.

8. Review reminders before dispatch

Calendar Coordination can generate invitation, 24-hour, one-hour, rescheduled, canceled, and post-meeting reminder records, keyed for idempotency. The scheduled worker advances eligible reminders to ready_for_review; it does not send the message. mark_reminder_sent() requires a suitable existing outbound communication from the same inquiry with an accepted or recorded status. The capability and communication audit should be verified independently, especially after a delayed job or reschedule.

Reminder status Meaning Operator check
pending Not ready to be sent Due time and meeting still eligible
ready_for_review A human decision is required Recipient scope, consent, copy and link
sent Linked outbound communication recorded Communication belongs to same inquiry
canceled/skipped No further delivery Stale state and reason retained
failed Review required Retry policy and prior side effects

The default setting calendar_auto_send_reminders is off. Do not enable an undocumented auto-send path as a workaround for missed notifications. A background-created reminder is not proof an email was delivered.

9. Use Microsoft Graph only when the connection is authorized

The reviewed Graph connector supports Microsoft global cloud Graph v1.0, a single tenant and configured organizer mailbox/calendar, with application-only authentication. Its Calendars.ReadWrite permission is potentially broad; Exchange Online Application RBAC should restrict mailbox scope. Creating an event is a human-triggered action from accepted_pending_link with a dedicated capability, nonce and typed confirmation (GRAPH <OFFER-NUMBER>). The worker processes already-queued operations and does not discover accepted meetings to book automatically.

The request carries a stable transactionId and local idempotency/request hashes. A Graph create can succeed before onlineMeeting.joinUrl becomes available; reconciling the event ID and link is a separate step. Preserve the same transaction ID during retry investigation. Respect Retry-After, exponential backoff and circuit state rather than flooding the organizer calendar.

10. Reschedule with optimistic concurrency and compensation

The reschedule() method requires an accepted or scheduled meeting, a valid future start/end interval, a reason, and a time zone. It preserves previous_start_utc/previous_end_utc, increments the reschedule counter and row version, records the actor, and flags an existing Graph event as reconcile_required. It cancels open reminders and regenerates them. When regeneration fails, a compensating update attempts to restore the previous interval and reminder state; this is not an excuse to assume every partial failure is automatically reversible.

Expected transaction narrative (illustrative):
BEFORE  scheduled, UTC A→B, row_version 8
CHECK   proposed local interval, zone, reason, actor, future time
WRITE   UTC C→D, previous A→B, row_version 9
UPDATE  old reminders canceled; new reminders created
GRAPH   if remote event exists: reconcile_required
VERIFY  local interval and remote interval agree after explicit reconcile
FAIL    if reminder generation fails: inspect compensation and audit evidence

Do not reissue rescheduling writes simply because an HTTP connection timed out; reconcile the current row version and reminder ledger first.

11. Cancel safely and revoke sender-visible links

Cancellation requires a reason and the appropriate administrative permission. The local workflow records canceled, clears the Teams/Graph join URL from sender-visible state, cancels open reminders, and can stage a reviewed cancellation notice. If a Graph event exists, the local record may indicate cancel_required. Deleting the organizer event is a separate operator-authorized Graph action and can notify attendees. Verify both local link revocation and remote calendar cleanup; do not equate one with the other.

A canceled, expired or superseded offer must not expose an active Teams URL in the protected sender projection. A Graph API failure after local cancellation should remain visible as a reconciliation obligation, not silently flip the meeting back to scheduled.

12. Complete the meeting and track follow-up

The completion procedure only applies to scheduled meetings. The operator can capture a sender-facing summary and separate private notes, decisions, open questions, follow-up owner/date, and an optional lifecycle task. The reviewed code stages a requested follow-up task before final completion, and attempts compensating cleanup when a later step fails. It then cancels irrelevant reminders and creates a post-meeting reminder record. A completed meeting is not evidence that its follow-up message has been delivered or that an assigned task has been executed. Review outstanding follow-up obligations explicitly.

13. Diagnose calendar and reminder state without exposing participants

The package includes read_only_calendar_reconciliation.php, designed for private WP-CLI execution by an authorized operator. It derives table names using the installed SC_EI_Database::table() helper, checks only bounded seven-day aggregates, and does not read names, email addresses, invitees, or meeting links into its output. It is not a public plugin route. Inspect the script and limit the sharing of small aggregate counts.

WP_PATH="/absolute/path/to/wordpress"
# Keep this helper outside public webroot. Do not run against unknown tenants.
wp --path="$WP_PATH" eval-file /absolute/private/path/read_only_calendar_reconciliation.php

It reports missing/invalid UTC intervals, links on closed meetings, active scheduling for restricted inquiries, orphan reminders, sent reminders with no communication reference, stale canceled reminders, and outstanding Graph reconciliation. Counts are indicators, not definitive incident findings; meeting records can predate the seven-day creation window or have pending remote work outside that window.

14. Run the standalone synthetic compatibility tests

The independent Python checker is an example of an evidence contract—not an official API model or a deployed scheduling endpoint. It accepts the bundled synthetic JSON packets, compares UTC/local times, checks authorized sender fields, tracks reminders, and flags forbidden calendar exposure. There is no network access and no WordPress mutation. Run the tests before using its diagnostic classifications in a support report.

cd scheduling_workflows_upgrade
python3 -m unittest discover -v
python3 scheduling_checker.py fixtures/valid.json
python3 scheduling_checker.py fixtures/invalid.json || test "$?" -eq 1

The recorded baseline for this package is 62 passing unit tests; the valid fixture yields zero findings and the deliberately invalid fixture yields 22 synthetic findings. Negative results are intended tests, not evidence of defects in a real deployment.

Cause

Failures typically arise at a boundary between private inquiry consent and scheduling, portal entitlement and offer publication, local civil-time interpretation and UTC storage, Teams link validation and sender visibility, reminder state and outbound communication, or WordPress and Graph state. Classify the first failed invariant rather than treating all issues as calendar-provider errors. Distinguish a stale browser/calendar cache from a confirmed row mismatch, and distinguish a successfully queued Graph operation from a confirmed remote event.

Troubleshooting

Observed condition Check in order Do not do
A valid request never reaches a meeting offer Privacy/consent, inquiry status, portal access, workflow entitlement Do not bypass intake validation
Time is one hour wrong IANA zone, exact local input, DST gap/overlap, stored UTC Do not silently adjust an ambiguous hour
Acceptance fails Offer state, expiration, selected slot key, portal session Do not accept on behalf of sender without authority
Link missing after Graph creation Graph event ID, next reconciliation, joinUrl readiness Do not create a second event with new transaction ID
Unexpected reminders Scheduled state, due time, idempotency, communication link Do not auto-send unreviewed reminders
Cancellation still appears live Local status, sender snapshot, cache, Graph cancel_required Do not assume Graph deletion followed local cancel
Conflicting reschedule row_version, old/new UTC, reminders, Graph sync status Do not overwrite with stale form data
Portal exposes private data Sender allowlist and cached route response Do not copy private payloads to public tickets

Resolution

Resolve only the affected boundary. For invalid form intent, correct the input or show a consent-specific error. For time-zone failures, require a new unambiguous local time; never force UTC based on a guessed offset. For portal entitlement, use the documented invite/activation flow. For Teams link errors, verify the actual host and supplied HTTPS URL, then finalize through a permitted action. For reminder failures, leave the record unsent until an appropriate communication exists. For Graph drift, reconcile the existing event before any new create/delete; preserve request IDs and operation logs. For cancellation disclosure, revoke sender access to the link and purge the relevant cache, then inspect downstream Graph state. Escalate privately with nonsecret request IDs, source SHA, affected lifecycle state and counts.

Verification

  1. Public intake: requesting a meeting creates an inquiry state only, with a recorded calendar invitation consent where required; it never publishes organizer availability.
  2. Authorization: anonymous and insufficiently privileged users cannot read private calendars or participant data; the intended operator can access the protected workspace.
  3. Offer lifecycle: draft, offered, accepted, scheduled, rescheduled, completed and canceled transitions match the documented prerequisites, with record/audit history.
  4. Time: valid future local times convert to expected UTC; spring-forward nonexistent and fall-back repeated times are rejected.
  5. Teams: approved HTTPS hosts work in the independent checker; lookalike hosts fail; prohibited/closed meeting links do not reach the sender.
  6. Reminders: duplicate keys are rejected by the synthetic checker, and sent status requires authorized associated outbound evidence. Background processing cannot automatically deliver messages.
  7. Rescheduling: prior interval, actor and row-version increment are documented; reminder regeneration failure triggers a recorded recovery action.
  8. Graph: remote event/link state matches the local record after explicit reconciliation; cancellation of the local meeting does not silently imply remote deletion.
  9. Privacy: sender projection excludes organizer emails, participant lists, private notes, decisions and Graph credentials.
  10. Evidence: record exact installed build, synthetic fixture version, expected versus observed transitions, sanitized failure codes, and unresolved exceptions. Mark the last verified version only after deployment-level acceptance.

Quantitative acceptance measures

For a bounded test run, report denominators instead of saying “all checks passed.” Let n be attempted synthetic bookings and e be unauthorized or mismatched outcomes. The observed failure rate is e / n, with a suitable binomial confidence interval only when trials are reasonably independent. Track separately: unauthorized private-read successes / unauthorized reads; incorrect UTC conversions / valid conversion cases; false acceptance of DST gap/overlap / invalid civil-time cases; sent reminders without matching communication / sent reminders; and duplicate remote calendar events / distinct accepted meetings. A zero observed failure count in 30 independent trials still gives an approximate upper 95% rule-of-three bound of 10%, not proof of zero risk. No production rates were measured for this article.

Security, consent and scientific limitations

Calendar coordination is an operational workflow rather than a scientific experiment. Its validation supports claims about controlled scheduling and traceable evidence—not the truth of a sender’s statements, consent sufficiency in every jurisdiction, or the correctness of external Microsoft Graph systems. Store only purpose-necessary participant details; do not publish organizer mailbox configuration, event IDs, meeting URLs, private notes, consent evidence, credentials, or raw Graph payloads in support articles. Review consent for the specific communication or invitation purpose and respect withdrawal/restrictions. One authorized operator may perform and document the acceptance checklist; a second human reviewer is not an inherent platform requirement.

Technical references

Verification boundary: This article references source behavior in the pinned commit and an independently executable synthetic test harness. The included WP-CLI helper was syntax-checked but not executed against any installed WordPress database. No remote calendar, live user, production permissions, or privacy outcome was verified.

Scroll to Top