openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Dynamics 365 connect form misses required organization name

Open Al629176 opened this issue 6 months ago • 1 comments

Summary

The Dynamics 365 Composio connect form does not ask for the required Organization Name field before authorization.

Problem

When a user tries to connect Dynamics 365, Composio rejects the authorization request with code 612 because the required provider-specific field is missing:

Missing required fields: Dynamics 365 Organization Name

The OpenHuman connect modal currently renders a generic OAuth/connect button and submits without first collecting the Dynamics 365 organization name, such as the myorg part of myorg.crm.dynamics.com.

Expected behavior: the connect modal should surface provider-specific required fields from Composio’s schema before submitting authorization, not only show a generic OAuth button.

Impact: users cannot connect Dynamics 365, and the UI fails only after submitting an incomplete auth request.

Steps to reproduce:

  1. Open OpenHuman and go to integrations/connections.
  2. Choose Dynamics 365.
  3. Start the connect/auth flow.
  4. Observe that the modal does not ask for the Dynamics 365 Organization Name.
  5. Submit the auth flow.
  6. Observe Composio rejects the request with code 612 / Missing required fields: Dynamics 365 Organization Name.

Version / platform: OpenHuman Composio connect modal / Dynamics 365 integration. Date reported: May 18, 2026.

Solution (optional)

Update the Composio connect modal to read and render provider-specific required fields from Composio’s schema before authorization. For Dynamics 365, render a required Organization Name input with guidance such as myorg for myorg.crm.dynamics.com, validate it locally, and include it in the Composio authorization payload.

This should be implemented generically so future Composio integrations with required fields do not need one-off UI patches.

Acceptance criteria

  • [ ] Required field rendered — Dynamics 365 connect flow shows a required Organization Name input before authorization.
  • [ ] User guidance included — The input explains that users should enter the org name, such as myorg from myorg.crm.dynamics.com.
  • [ ] Local validation — The modal blocks submission when Organization Name is empty or clearly invalid.
  • [ ] Auth payload fixed — The Organization Name value is included in the Composio authorization request.
  • [ ] Schema-driven fields — Provider-specific required fields are rendered from Composio’s schema where available, not hard-coded only for Dynamics 365.
  • [ ] Raw error avoided — Users do not see the raw Composio 612 missing-required-fields payload for this flow when the field can be collected upfront.
  • [ ] Retry works — If Composio still returns ConnectedAccount_MissingRequiredFields, the modal maps the missing field into an actionable retry state.
  • [ ] Regression safety — Unit, integration, or E2E coverage verifies Dynamics 365 required-field rendering, validation, payload submission, and generic schema-driven field behavior.
  • [ ] Diff coverage ≥ 80% — the fix PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml).

Related

  • Jira required-field connect bug: #1702.
  • Direct Composio developer path: #1793.
  • Composio tool/error handling: #1797.

Al629176 avatar May 18 '26 16:05 Al629176

Picking this one up. Going to wire the connect modal so it asks for the Dynamics 365 org name (and any future provider-specific required fields) upfront instead of failing after submit.

obchain avatar May 19 '26 07:05 obchain