question

Lisa Xu avatar image
Lisa Xu asked Suyash Joshi commented

How to download Company call log by SDK

The example for get call log are all for current user


1618855340905.png


where is the function for download company log?


are there something like ReadCompanyCallLogParameters ? where is the example for c#


Thanks



sdk
1618855297797.png (19.2 KiB)
1618855340905.png (19.6 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban avatar image
Anirban answered

If you check the API link in the API console:

https://developers.ringcentral.com/api-reference/Call-Log/readCompanyCallLog

There is API readCompanyCallLog and in the right hand side you will find C# code and function: readCompanyCallLogParameters

1618931842711.png


1618931842711.png (113.8 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Lisa Xu avatar image
Lisa Xu answered Phong Vu commented

The example you give need account id, is that means i have search account by account, i cannot get all call log information at once?

and what is the function to get account information?

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

What do you mean "account by account"? Account id is the id of the entire company, while extension id is the id of each extension under the company. Think as "the employer and employees" where employer is the account and employees are extensions.

You can read the call log in 2 levels.

User (extension) level

Company (account) level

Read these blogs for more info.

https://medium.com/ringcentral-developers/downloading-call-log-using-ringcentral-call-log-api-endpoint-quick-tip-1ac27aaa82bc

https://medium.com/ringcentral-developers/visualize-your-business-communications-history-2c81f85c324a

1 Like 1 ·
Lisa Xu avatar image
Lisa Xu answered

Thank for your comment, it is working

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

NuCare Admin avatar image
NuCare Admin answered Suyash Joshi commented

That is not a solution, I did it already, but it keeps an error.

I allowed ReadCallLog permission to my app, but I am getting an error below when I test api using Postman.

{ "errorCode" : "InsufficientPermissions" , "message" : "In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user." , "errors" : [ { "errorCode" : "CMN-408" , "message" : "In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user." , "permissionsName" : "ReadCompanyCallLog" } ], "permissionsName" : "ReadCompanyCallLog" }


Please see this.

https://prnt.sc/UDJ-YWFmJrEK


I am not clear why it keeps an error above.

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi @NuCare Admin this error means you need to login as 'Admin' using admin credentials, see this question for similar problem/solution: https://community.ringcentral.com/questions/8397/in-order-to-call-this-api-endpoint-user-needs-to-h-4.html

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys