Programmaticaly使用c#调用新的OneDrive同步客户端? [英] Programmaticaly call new OneDrive sync client using c#?

查看:87
本文介绍了Programmaticaly使用c#调用新的OneDrive同步客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,


随着最新的Office 365更新引入了新的OneDrive同步客户端,我遇到了一个问题,即以同步方式调用它来同步SharePoint 2013网站。在更新办公应用程序后,我们得到两个onedrives - 1)Microsoft OneDrive(新的
同步客户端)& 2)OneDrive for Business(旧版)。但默认情况下,Microsoft OneDrive控制着我们的SharePoint 2013网站的同步。


之前我们使用c#创建了一个Windows应用程序,可以在用户计算机中映射Sharepoint 2013网站的文档库用户可以根据需要操纵数据等。我们使用'GRVOPEN'网址来调用网站的映射:  grvopen:// {Library
Absolute URI} / {Empty GUID} / 101?OPENLIST


我们将此代码放在按钮单击事件中,并在调用此函数时调用OneDrive for Business同步客户端并同步库,我们用于显示已同步的库应用程序用户控制台。


但是在引入新的同步客户端后,"GRVOPEN"不再起作用。我发现之前调用的是'groove.exe',后者又打开了OneDrive for Business的同步控制台。但现在'onedrive.exe'正在发生。


我们尝试从控制面板手动卸载"Microsoft OneDrive",以便只保留OneDrive for Business并调用它。但这样做也无济于事。同步完全停止(以编程方式,也来自SharePoint 2013
站点的同步按钮)。


任何人都可以就如何解决此问题提供一些想法或代码示例。根据目前的情况,用户无法使用Windows应用程序(他们习惯使用)。我们有什么方法可以使用c#以编程方式调用新网站的同步?


提前致谢。


问候


普拉迪普。




关心Pradeep(PKM)

解决方案


请尝试卸载所有两个onedrives,然后安装新的onedrives并检查它是否有效。


并检查质量检查如下。


无法使用新的同步客户端同步SharePoint库 b

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_onedrivefb-mso_win10-mso_o365b/cant-sync-sharepoint-library-using-new-sync-client/1a7da17e-0d19-4069-b4b5-c28c3d88e876


最好的问候,


Dennis



Hello Experts,

With the recent Office 365 update which introduced the new OneDrive sync client, I am facing problem to call it progrmmatically for syncing a SharePoint 2013 site. After updating office application we are getting two onedrives - 1) Microsoft OneDrive (new sync client) & 2) OneDrive for Business (old one). But by default Microsoft OneDrive is taking control over the syncing of our SharePoint 2013 sites.

Previously we made a windows app using c# which can map Sharepoint 2013 site's document libraries in the user machine and from there user can manipulate the data as per their needs etc. We use to call the mapping of a site by using the 'GRVOPEN' url as : grvopen://{Library Absolute URI}/{Empty GUID}/101?OPENLIST

We put this code in a button click event and upon calling this the OneDrive for Business sync client gets called and the library gets synced and we used to show the synced libraries in the apps user console.

But after the new sync client is introduced 'GRVOPEN' doesn't work any more. I found out that previously the call was made to 'groove.exe' which in turn opens the syncing console of OneDrive for Business. But now 'onedrive.exe' is taking place.

We tried to manually uninstall the 'Microsoft OneDrive' from control panel so that only OneDrive for Business remain and it gets called. But doing that also doesn't help. The syncing totally stops (both programmatically and also from the SharePoint 2013 site's sync button).

Can anybody give some idea or code sample on how to resolve this issue. As per the current situation users can't use the windows app (which they are habituated with). Is there any way we can call the syncing of a new site programmatically using c#?

Thanks in advance.

Regards

Pradeep.


Regards Pradeep(PKM)

解决方案

Hi,

Please try to uninstall all the two onedrives, then install the new one and check if it works.

And check the QA as below.

Can't sync SharePoint library using new sync client

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_onedrivefb-mso_win10-mso_o365b/cant-sync-sharepoint-library-using-new-sync-client/1a7da17e-0d19-4069-b4b5-c28c3d88e876

Best Regards,

Dennis


这篇关于Programmaticaly使用c#调用新的OneDrive同步客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆