Microsoft OneDrive for Business - Marco option not available in the Insert search results
Asked by Mark.Dibella:

*** ** * ** ***

I've added the Microsoft OneDrive for Business app to Confluence and when I proceed to add a one drive macro to a page, nothing comes up in the Search. I've tried a variety of search terms including onedrive, microsoft, excel, visio, etc. and nothing comes up.

I've also tried to "add the link to the editor page" but Confluence does not recognise the URL as anything other than a normal link.

Can someone please advise if I'm doing something incorrectly?

**Screenshot #1 - Evidence the App is installed**

![install.jpg](/t5/image/serverpage/image-id/183153iE3CFFA42DB9C71DE/image-size/large?v=v2&px=999 "install.jpg")

**Screenshot #2 - Evidence that typing OneDrive or any other term doesn't return a result.**

![search.jpg](/t5/image/serverpage/image-id/183152i9DF8C80E73FA13D5/image-size/large?v=v2&px=999 "search.jpg")


Answers:
author: korbamm
body: Additionally to what [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) said:

You cannot just copy the (sharepoint-) address from your browser, but you have to generate an **official sharing link.**

![Inkedsharepoint_1_LI.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/183246iB318F27C89D9F89D/image-size/large?v=v2&px=999 "Inkedsharepoint_1_LI.jpg")

That way it worked for me, asked for credentials and everything.

comments: author: Alberto Encinas Elvira
body: Yes, that was the point. And when generating the link, choose the option "Anyone in your coorp. with the link can view-edit" other way it will not work (for me at least).

Thanks!! :)


author: Pramodh M
body: Hi [@Mark.Dibella](/t5/user/viewprofilepage/user-id/4754084)

Welcome to the community ?

The macro is deprecated going forward.

Follow the below steps to include onedrive content

<https://confluence.atlassian.com/confkb/Deprecation-of-Google-Drive-and-One-Drive-macros-1108685493.html>

Uninstall the app and use the embed feature

Let me know if you have any queries

Thanks,

Pramodh

comments: author: Mark.Dibella
body: Hi Pramodh,

I followed the instructions but unfortunately I don't receive the same experience as outined in the knowledge article. As you can see from my screenshot below, I don't receive the "Embed" button to the left of the Edit Link button. My link was a Sharepoint link.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/183170iB0C43BCE54D00E7E/image-size/large?v=v2&px=999 "image.png")

Regards,

Mark


author: Alberto Encinas Elvira
body: Yes! same problem here. Same as you, when I paste a link from sharepoint i can't see the "edit link" buton, so it's shown as a normal link, with no embed view... Any suggestion?


author: korbamm
body: Same problem here. I tested it with *Google Drive* , which works like a charm, but not for **Sharepoint**...

I take it back, see my answer above.


author: Mark.Dibella
body: Thanks [@korbamm](/t5/user/viewprofilepage/user-id/4674944), using the "official" Sharepoint link, the button is now displaying, however the Embed option is not available. See screenshot below.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/183345iB0081F46D27B3DFB/image-size/large?v=v2&px=999 "image.png")

Within the editor it asks me to "Connect to Preview" as highlighted above. When I click the link it then displays this message - i think it attempted to redirect me to my organisation's single sign on page.

Looks like we need to provide access to atlassian for access to our resources.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/183346iD8431BC0165F259B/image-size/large?v=v2&px=999 "image.png")


author: Mark.Dibella
body: [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) Are you able to review my most recent comment above on [Feb 14, 2022](https://community.atlassian.com/t5/Confluence-questions/Re-Re-Microsoft-OneDrive-for-Business-Marco-option-no/qaq-p/1944298/comment-id/234131#M234131) and let me know how I should proceed, as you can see, the link is being recognised but the Embed option isn't available.


author: Pramodh M
body: Yes go ahead [@Mark.Dibella](/t5/user/viewprofilepage/user-id/4754084)

Once you are able to approve the request, you will be able to preview the files

Thanks


author: korbamm
body: I have to say, also when connected, I do not get the option to preview sharepoint files, just the three before mentioned options (URL, Inline, Card).  

Not sure what is causing this, but something is amiss.


Tags: cloud

confluence-cloud

macro

onedrive