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
Retrieve account/company level messages
Tags: sms and text messaging, message
May 2, 2023 at 7:47am   •   3 replies  •  0 likes
San Ga

Hello,

We have around 300 users with RC in the field and we need to retrieve a week's worth of sms into our system. From what i see this is only possible via the message store API.

https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/extension/extensionId/message-store

On searching within the community questions, it looks like the extensionid is a mandatory parameter. The latest community post i could find was from 2021. Not sure if the solution recommended then, has changed, but my concern is that, if i were to ping the message store for 1 week worth of data, I will have to loop this 300 times which I think will impact the API limit.


Is there any recommendation on how to achieve this, without throttling the system due to high API calls. I am the super admin, so do have access to other members message store.

1683038888846.png

3 Answers
answered on May 3, 2023 at 8:11am  

@Phong Vu - when you recommend an article or link, we do read it and follow the steps and if it fails, we come back to support. Having said that, we did try the date/time formats as per ISO 8601, but postman still does not trigger it correctly.


1683125473288.png


 0
on May 3, 2023 at 8:47am   •  0 likes

Can you try to reproduce the problem in one of the programming languages using RingCentral SDKs in the dev guide.

Can you also read the message store of this account a month back e.g.?

answered on May 2, 2023 at 8:00pm  

@Phong Vu as per your suggestion and the article guidelines, I am passing the request, but oddly, the date parameters are being forced to the past 2 days. Please advise on what I am missing. I am able to get to the downloaded files, but the dates of data being requested is not being captured correctly.

1683082721255.png


 0
on May 3, 2023 at 7:20am   •  0 likes

Once again, read the API reference or follow the example in the dev guide carefully. The dateFrom and dateTo is strictly in ISO 8601 format. Somehow your code ignored the invalid dateFrom and dateTo and it used the default value 24 hours from the current time.

dateFrom

Start datetime for resulting messages in ISO 8601 format
including timezone, for example 2016-03-10T18:07:52.534Z. The default value
is dateTo minus 24 hours

answered on May 2, 2023 at 7:55am  

In that case, use the message store export API set.

Read the Dev guide and this article to learn more.

Kindly reply and accept an answer if it answers your questions.


 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