Skip to content

feat: add admin.conversations.createForObjects method - #1704

Draft
zimeg wants to merge 1 commit into
mainfrom
zimeg-feat-admin-conversations-create-for-objects
Draft

zimeg wants to merge 1 commit into
mainfrom
zimeg-feat-admin-conversations-create-for-objects

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds the admin.conversations.createForObjects method to the sync and async clients.

  • adminConversationsCreateForObjects takes objectId, salesforceOrgId, and inviteObjectTeam. The response has the new channel_id.
  • It needs a user token with admin.conversations:manage_objects.
  • MethodsTest no longer excludes the method from its coverage check.

This is part 1 of 3 in the admin stack, which adds the admin methods one at a time. This pull request is in batch B2 object conversations. Each pull request builds on the one before it and merges on its own, bottom to top. The stack starts on main.

  1. feat: add admin.conversations.createForObjects method #1704 admin.conversations.createForObjects 👈 this pull request
  2. feat: add admin.conversations.linkObjects method #1705 admin.conversations.linkObjects
  3. feat: add admin.conversations.unlinkObjects method #1706 admin.conversations.unlinkObjects

Testing

Run the remote tests for this layer:

  • test_with_remote_apis.methods_admin_api.AdminApi_conversations_Test#createForObjects with SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN (admin.conversations:manage_objects)

The example object_id and salesforce_org_id from the docs don't match a record in the test org, so the API answers with the documented record_not_found. Leaving both out returns invalid_arguments naming each field instead, so the error shows both IDs reach the API.

Each layer was checked against the live API by running its own remote test, along with the earlier tests in its stack.

Category

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.81%. Comparing base (8fa0566) to head (3643cd0).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1704      +/-   ##
============================================
- Coverage     73.95%   73.81%   -0.14%     
+ Complexity     4752     4749       -3     
============================================
  Files           487      487              
  Lines         14811    14820       +9     
  Branches       1536     1536              
============================================
- Hits          10953    10940      -13     
- Misses         2943     2963      +20     
- Partials        915      917       +2     
Flag Coverage Δ
jdk-14 73.81% <100.00%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality project:slack-api-client project:slack-api-client semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant