Maintain control of your Microsoft 365 data
Post Reply
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

API sharepoint restore restoretoOriginallocation

Post by b.vanhaastrecht »

Hello,

We are trying to restore items, folders, lists, libraries and documents to their original location. However when executing those requests we get the following message returned:

Code: Select all

{"result":"error","message":"Unknown action name: restoretoOriginallocation."}
While the documentation states all those types should have the restoretoOriginallocation action available. Is this a documentation error of API fault?

https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=40

(No ticket, as we have a multitude of API bug tickets open, and it's taken so much time for support to troubleshoot :( ).

Kind regards,
Bastiaan van Haastrecht
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by nielsengelen »

You can restore to the original location with restoreTo.

restoretoOriginallocation is only applicable with MFA enabled organizations so it depends on how you authenticate against it (which is unclear from your initial post).

Also, on the helpcenter, we have a button "Send feedback" which will allow you to drop an e-mail and if something is wrong, we will correct it and you'll get an update via mail (sometimes beats support).
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by b.vanhaastrecht »

Sorry, for got to mention that. We are using modern authentication. So body looks like:

Code: Select all

{
"restoretoOriginallocation":
 {
    "userСode": "XXXXXXXX",
    "list": "xxxxxxxxxxxxxxxxxx",
 }
}
So restoretoOriginallocation should be a valid action.
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by Polina »

Hi Bastiaan,

This is a candidate for another support ticket, I'm afraid. With a separate case ID, it'll be much easier to track it and escalate to RnD. And, please share the ID here for the followup.

Thanks!
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by b.vanhaastrecht »

I'm really astonished if anyone is fully utilizing the API. We've stumbled on so many bugs, it's unbelievable. I know there are SP's using the API for self restore functionality, guess they are not fully utilizing all the features.

Will create a ticket...
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by b.vanhaastrecht »

#02112214
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by Polina »

Bastiaan,

First, my apologies for the all inconvenience you're experiencing with APIs. There're always things to improve, and our RnD team does the best they can to address all issues.

Second, our system doesn't provide any results on the case ID you provided. Could you please check if the number is correct?

Thanks!
b.vanhaastrecht
Service Provider
Posts: 880
Liked: 164 times
Joined: Aug 26, 2013 7:46 am
Full Name: Bastiaan van Haastrecht
Location: The Netherlands
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by b.vanhaastrecht »

Hi Polina,

It's just a bit frustrating when building a new app you stumble from bug to bug. Hope they get things sorted asap.

Dont know how I got that ticket id, but the proper one is: #04420617

Have a great weekend!
======================================================
Veeam ProPartner, Service Provider and a proud Veeam Legend
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: API sharepoint restore restoretoOriginallocation

Post by Polina »

This one is correct, thanks )
(and now I know there the first # came from :) )

Cheers!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 17 guests