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
Trying to get the status of faxes appears to work if I go through the call log but not the message store
Tags: sdk
Dec 10, 2020 at 10:56am   •   1 replies  •  0 likes
Bruce Ganek

I'm using the C# SDK. It appears that I can get everything back when I call the CallLog, but if I go through the messagesStore, I always get back 0 records. I'm assuming I should be going through the messageStore and not the call logs?

My goal is to build a portal to show people which faxes did not success.


Here's what I'm doing:


ListMessagesParameters parameters = new ListMessagesParameters();

String[] myTypes = new String[1]
myTypes[0] = "Fax";
parameters.messageType = myTypes;
RingCentral.GetMessageList response = await rc.Restapi().Account().Extension().MessageStore().List(parameters);


This returns 0 records.


But this returns everything about the faxes (those that didn't make it, busy signal, etc.)

var callLogResponse = await rc.Restapi().Account().CallLog().List(new ReadCompanyCallLogParameters


?callLogResponse.records[0]

{RingCentral.CompanyCallLogRecord}

action: "Outgoing Fax"

billing: null

@delegate: null

deleted: null

direction: "Outbound"

duration: 37

extension: {RingCentral.ExtensionInfoCallLog}

@from: {RingCentral.CallLogCallerInfo}

id: "4fg8XIBj2p7ussA"

lastModifiedTime: null

legs: null

message: {RingCentral.CallLogRecordMessage}

reason: "Fax Not Sent"

reasonDescription: "An attempt to send the fax was made, but could not connect with the receiving fax machine."

recording: null

result: "Fax Not Sent"

sessionId: "-363044400502"

shortRecording: null

startTime: "2020-12-09T16:23:40.596Z"

telephonySessionId: null

to: {RingCentral.CallLogCallerInfo}

transport: null

@type: "Fax"

uri: "https://platform.devtest.ringcentral.com/restapi/v1.0/account/687971005/call-log/4fg8XIBj2p7ussA?view=Simple"




1 Answer
answered on Dec 10, 2020 at 12:13pm  

Never mind, I think I figured it out, if you don't put dates in it returns nothing.


 1



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