News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Need get customer details when receive Call
Tags: developer sandbox
Jan 3, 2022 at 4:39am   •   2 replies  •  0 likes
Himanshu Patel

Hello,

I integrate https://github.com/ringcentral/ringcentral-embeddable in my website and also have live account for call in US

https://service.ringcentral.com/ from here create new contact with all details.

When i get call than i want to show other information like company name & customer nick name in embeddable popup

Please suggest

2 Answers
answered on Jan 13, 2022 at 3:30am  

Hello,

According to your suggestion i use below code for get customer data as `data.call.contactMatch.notes` which get details but when i change that details from ringcentral admin than can't get updated value.

Please suggest.


 0
answered on Jan 7, 2022 at 10:02am  

If you need to display the customer details inside the embeddable widget, you'll need to clone the embeddable source code and customize it the way you want to and host it in your own server.

If you need to display the customer details in your website, you need to register for the incoming call events notification, then capture the caller phone number and do a lookup to get the customer detailed info then display it.

window.addEventListener('message', (e) => {
  const data = e.data;
  if (data.call && data.call.direction == 'Inbound'){
    switch (data.type) {
      case 'rc-call-ring-notify':
        console.log(`Incoming call from: ${data.call.from.phoneNumber}. Call status: ${data.call.telephonyStatus}`)
      getCustomerDetails(data.call.from.phoneNumber)
      break;
      ...
    }
  }
});

function getCustomerDetails(callerPhoneNumber){
  // do your own look up using the caller phone number
}

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us