microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
388 stars 341 forks source link

Replacing Teams with RingCentral #3940

Closed adumith closed 2 months ago

adumith commented 2 months ago

Hello everyone,

I have successfully developed the page for my organization; it works just great.

The only issue we have is the following: On the user card, I have three icons: one for making a call and another for starting a chat. When I click on the call icon, the RingCentral application generates an error because I am passing the email instead of the phone number. Here is the code:

image

For the chat, when clicking the icon, the system opens Teams instead of RingCentral. Here is the code:

image

Consulting with the RingCentral development team, I was informed that callto is not a supported URI scheme for RC. To use RC for making calls, I need to use the following URI scheme:

rcapp://r/call?number=

To open a chat window in RC, use the following scheme. Please replace <chat id> with the actual chat ID:

rcapp://chat/r?groupid=

How can I modify the code to pass the phone number in the <phone number> field?

So, do you have any idea how can I approach this?

Thank you so much,

mobun commented 2 months ago

Hi, I think the best option would be to create your own template to display the user card and to equip the button with the correct link for your case ( https://microsoft-search.github.io/pnp-modern-search/extensibility/templating/). Maybe someone else has another idea, but that would be my approach.

kasperbolarsen commented 2 months ago

I agree with @mobun , a custom template is the way forward. We have a repository containing various layouts submitted by the community , you might find some inspiration there, https://github.com/microsoft-search/pnp-modern-search-layouts/tree/main/Results/Handlebars

wobba commented 2 months ago

Added rcappin #3972. So in the dev branch and next release.