Skip to main content

Notifications

Power Automate - Connector Development
Answered

Custom connector Error 404: Unable to call on the Office Management API

(0) ShareShare
ReportReport
Posted on by 9

Hi all,

 

Currently working from my developer environment and trying to make a custom connector to fetch all Admin message center messages. I am following the steps in this document.

A Flow Custom Connector to read O365 Communications API - Microsoft Tech Community

 

I have registered my application and gave the API permission including admin consent. I  Unfortunately I receive this error message: 

Ingravity070_0-1660046085781.png

I have followed the tabs 

General:

Ingravity070_1-1660046141935.png

Security:

Resource URL: https://manage.office.com

 

Ingravity070_2-1660046168188.png

 

Definition: 

Ingravity070_0-1660050909707.png

I have tried several combinations for the get but it is not working. when I paste the api in the browser i get the 404 issue. This means something is wrong with the API. but i clearly copied from the blog.

this is wat 1 tried:

  1. https://manage.office.com/api/v1.0/<tentantID>/ServiceComms/Messages/api/v1.0/62jmjq.onmicrosoft.com/ServiceComms/Messages
  2. https://manage.office.com/api/v1.0/contoso.com7/ServiceComms/Messages/api/v1.0/62jmjq.onmicrosoft.com/ServiceComms/Messages
  3. https://manage.office.com/api/v1.0/62jmjq.onmicrosoft.com/ServiceComms/Messages/api/v1.0/62jmjq.onmicrosoft.com/ServiceComms/Messages

none of these combination worked. 

 

does anyone know how to fix this?

 

please note I work with a developer tenant and am unable to create a publisher domain. does this have to do something with the error?

 

 

Categories:
  • Verified answer
    Ingravity070 Profile Picture
    Ingravity070 9 on at
    Re: Custom connector Error 404: Unable to call on the Office Management API

    I got this issue fixed! 

     

    In MC257688 Microsoft explained that they moved the API management permission to Graph. This means that you do not connect to manage.office.com anymore. you will need to connect to https://graph.microsoft.com

     

    First in app registration you request API permissions for Graph API. request for the following permission: 

    Ingravity070_0-1660810620895.png

     

    Next  configuring the custom connector.

     

    1. set for the tab general the host name to graph.microsoft.com and leave the Base URL empty

    Ingravity070_1-1660810713312.png

    2.  in the Security tab use your Client ID & Client Secret fill, login URL is https://login.windows.net, Tenant ID is common and for resource URL fill in https://graph.microsoft.com 

     

    3. For definition you create one action: 

          In the request section perform a GET with the link:    https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages

     

    Ingravity070_2-1660810962551.png

     

    for the Section response use the following JSON sample:

    Due to my inexperience with JSON I was unable to load the sample. To get your sample go to https://graph.microsoft.com fill in this link with the query: https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages

     

    copy All the code that shows up. 

     

    Completed these steps? then you are able to create and use the custom connector to retrieve the messages

     

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics