共享日历未显示在Office 365的Azure获取日历连接器中 [英] Shared Calendar is not showing up in azure get calendar connector for Office 365

查看:154
本文介绍了共享日历未显示在Office 365的Azure获取日历连接器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Office 365中拥有一个具有读写权限的共享日历,我正在尝试使用获取日历"(V2)连接器来获取它,但它只是获取了自己的日历.有没有一种方法可以在Azure逻辑应用中获取Office 365的共享日历?

I have a shared calendar in Office 365 with read and write permissions and I am trying to get it using Get calendar (V2) connector but it is only getting my own calendar. Is there a way to get shared calendars for Office 365 in Azure logic apps?

推荐答案

对此问题,我做了一些测试,似乎逻辑应用程序中的获取日历(V2)"操作无法获取其他人共享给您的日历.但我在下面提供了另一个解决方案(使用图形API)供您参考:

For this problem I did some test and it seems the "Get calendar (V2)" action in logic app can't get the calendars which others shared to you. But I provide another solution(use graph api) below for your reference:

1..您需要要求其他人在

1. You need to ask others to share a calendar to you on office 365 web page but not in outlook app.

2..然后,您需要在Azure AD中创建一个应用程序,请参考此

2. Then you need to create an application in your azure AD, please refer to this tutorial.

在您上面的azure广告中创建的应用程序中,请执行以下步骤:

In the application you created in azure ad above, please do the steps below:

在那之后,请不要忘记单击"xxx的授予管理员同意"按钮(也许您需要等待几分钟,直到此按钮变为可单击状态).

After that, please do not forget click the "Grant admin consent for xxx" button(Maybe you need to wait a few minutes until this button become clickable).

然后在天蓝色广告的应用程序中单击证书和秘密",并新建一个客户秘密.(将此客户秘密复制到您的笔记本中)

Then click "Certificates & secrets" in your application in azure ad and new a client secret.(copy this client secret to your note book)

3..然后在逻辑应用中创建一个"HTTP"操作,并参考下面的屏幕快照以请求访问令牌.

3. Then create a "HTTP" action in your logic app and refer to the screenshot below to request for the access token.

"client_id"是您在天蓝色广告中的应用ID,"username"和"password"是您在天蓝色的用户名和密码,"client_secret"是您所获得的.此"HTTP"操作将帮助我们获取访问令牌.响应应如下所示:

The "client_id" is your appliction id in azure ad, "username" and "password" is your azure user name and password, the "client_secret" is what you got above. This "HTTP" action will help us to get the access token. The response should be like below:

然后,我们需要将响应数据解析为json类型,您可以使用"

Then we need to parse the response data in json type, you can use "Parse JSON" action.

使用"HTTP"操作中的正文",并在下面的代码中填写模式"框:

Use the "Body" from the "HTTP" action and fill in the "Schema" box with the code below:

{
    "properties": {
        "access_token": {
            "type": "string"
        },
        "expires_in": {
            "type": "integer"
        },
        "ext_expires_in": {
            "type": "integer"
        },
        "scope": {
            "type": "string"
        },
        "token_type": {
            "type": "string"
        }
    },
    "type": "object"
}

4.之后,我们可以在逻辑应用中创建另一个"HTTP"操作,并为您可以看到的所有日历请求图形API(请注意,承载"和"access_token").

4. After that, we can create another "HTTP" action in logic app and request the graph api for all of the calendars which you can see (please note there is a space between the "Bearer" and the "access_token").

5..最后,我们可以在第二个"HTTP"操作的输出"框中获取所有日历.

5. At last, we can get all of the calendars in the second "HTTP" action's "OUTPUTS" box.

希望有帮助〜

这篇关于共享日历未显示在Office 365的Azure获取日历连接器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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