Skip to main content
The First Step
Apr 19, 2021 6:07 PM UTC
Question

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



6 replies

The First Step
Apr 20, 2021 3:17 PM UTC

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

lxuThe First StepAuthor
The First Step
Apr 26, 2021 2:59 PM UTC

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?

PhongVu
Community Manager
Community Manager
Apr 26, 2021 3:28 PM UTC

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

lxuThe First StepAuthor
The First Step
Apr 26, 2021 4:50 PM UTC

Thank for your comment, it is working

Participating Frequently
Jun 13, 2022 3:36 PM UTC

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.

Jun 13, 2022 9:13 PM UTC

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