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
When receiving attachments through Team Messaging API, I get inconsistent response
Tags: rest api, ringcentral app
Apr 19, 2023 at 12:18am   •   1 replies  •  0 likes
Suresh Bollipo

Hello,

our development team is trying to implement receiving attachments from the Team Messaging API. (files, images, videos etc)

When we're listing messages in our chat using this call: https://developers.ringcentral.com/api-reference/Posts/readGlipPostsNew

if the message contains attachment(s), sometimes we're getting an object containing 2 properties per attachment (f.e. attachments: [{id: "2181292580874", type: "File"}]),

Screenshot 2023-04-19 at 9.11.41 AM.pngScreenshot 2023-04-19 at 9.11.14 AM.png

and sometimes we're getting 4 properties per attachment. Screenshot 2023-04-18 at 11.52.54 PM.png

So sometimes we're getting the id and type. Right now, we can't locate the API call in the documentation that somehow uses this id to get more information about the attachment. Are we missing something, or is this not yet implemented?

When we're getting contentUri as one of the 4 fields, I assume we have all that is needed, but in the instances where we get 2 fields, I'm not sure what to do.

Kind regards

1 Answer
answered on Apr 19, 2023 at 11:45am  

I think that is the case where the file (attachment) was deleted from the team. You can double check from the RC app to see how many files are still found from the team.

screen-shot-2023-04-19-at-114440-am.png


 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