Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_api/site/CreateCopyJobs does not work with file in multiple document sets #9928

Open
2 of 9 tasks
Ed-Edf opened this issue Sep 19, 2024 · 1 comment
Open
2 of 9 tasks
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@Ed-Edf
Copy link

Ed-Edf commented Sep 19, 2024

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

Running an HTTP request to SharePoint in PowerAutomate

Describe the bug / error

When attempting to run the _api/site/CreateCopyJobs where the file in exportObjectUri exist in multiple documents sets a bad gateway error is returned.
api works for files within the same document sets

Steps to reproduce

  1. Create 2 documentsets in a document library and add in files to both document sets
  2. Create a test flow in PowerAutomate
  3. Add in a Send an Http request to SharePoint action
  4. Set Site Address: https://contoso.sharepoint.com/sites/TestSite
  5. Set Method: Post
  6. Uri: _api/site/CreateJobs
  7. {
    "exportObjectUris": [
    "https://contoso.sharepoint.com/sites/TestSite/SharedDocuments/DocumentSet1/FileOne.pdf",
    "https://contoso.sharepoint.com/sites/TestSite/SharedDocuments/DocumentSet2/FileTwo.pdf"
    ],
    "destinationUri": "https://contoso.sharepoint.com/sites/TestSite/Test/ShareDocuments",
    "options": {
    "IgnoreVersionHistory": true,
    "IsMoveMode": false,
    "AllowSchemaMismatch": true,
    "NameConflictBehavior": 1
    }
    }

image

image

result:

image

Expected behavior

Files from multiple document sets to be copied to destinationUri

@Ed-Edf Ed-Edf added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Sep 19, 2024
@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

3 participants