Skip to main content

Hi,

I have a small question. Have developed a functionality to retrieve user's notebooks from Microsoft (OneNote). The onenote itself has two URL in the response body, the one_note_client_url and the one_note_web_url.

Have built a view witht he data I need and for the web_url i ve made a column with the domain type as html with something like this "cast('<a href="'+notebook.one_note_client_url+'">' + notebook.display_name + '</a>' as nvarchar(max))”. This works as intended and I can open the notebook in a different tab in browser.

The issue I face is whent I want to use the one_note client url wich in technical terms is the same url except that it contains the word "onenote:” at the beggining of the url. I have tried to make it with 2 different domain types, URL and HTML (same as the web_url) and in both cases I get the action blocked by the SF 

Is something I can do in order for the link to be inserted as it is in browser so the OneNote app would start or it is blocked by the SF to have redirect outside of the browser?

 

Thanks,

Paul

Hi ​@TurcuPaulAndrei,

You can add the following to Universals’ config.json to allow onenote as protocol:

"allowedHTMLURIPrefixes": "onenote"

Source: https://docs.thinkwisesoftware.com/docs/deployment/universal#allowed-html-protocols

 

Kind regards,
Leroy Witteveen


Hi,

Thanks for the reply, have done that but with no result. The value of <a> does not have the href inside and I think is because SF removes the onenote protocol.

This is the column with "onenote:” +link
This is the column that contains just the link (opens onenote in a new tab)

 


Hi ​@TurcuPaulAndrei,

Hmm strange, if I test this it seems to work.
Can you create a TCP ticket for this please, with reproduction?
That way we can investigate why it doesn't work for you.
In the ticket, can you also include a full screenshot of the about:blank#blocked tab?
Please also include a screenshot of your browser console after trying to open this URL in the ticket, both of Universal and of the about:blank#blocked tab.

Kind regards,
Leroy Witteveen


Reply