Is it possible to publish a file in the SharePoint to major version using any UI Path activities?
Or any other way is available to publish it through automation?
Is it possible to publish a file in the SharePoint to major version using any UI Path activities?
Or any other way is available to publish it through automation?
you can us SharePoint REST API to interact with SharePoint and publish a file to a major version. You may need to use the “HTTP Request” activity or invoke a script that can make REST API calls.
Thank you for your response!
Is there any direct activity in UI Path to publish the file instead of using REST API? Or do we have any workaround to do that?
There is Upload File activity using MS365
HI @alphonsa_lal_thomas , Please refer the below link where you can use the UiPath activates to upload the file instead RestAPI
Thanks
Muthu
Thank you!.. But the actual requirement was for publishing the file in SharePoint to a major version.
I have uploaded the file to SharePoint. After uploaded, I want to publish it. So that, I tried using REST API and getting some authorization errors.
I am wondering whether we have any other option to publish it instead of using REST API.
Tried using VB code by using invoke code. But for that I should import UIPathTeam.Sharepoint activities from manage packages and unfortunately it is not compatible to Windows project. Same situation is for PowerShell as well.
It would be great if someone can help me to find a solution for this.