invalid value for faxresolution.

  • 1
  • Question
  • Updated 1 year ago
  • Answered
iam using the api. and getting error as 'faxresolution' value is invalid. it comes for every parameter that i pass? please help. iam using the method given in github code for the api call.
Photo of e-Emphasys EET

e-Emphasys EET

  • 380 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
Where is the sample code you mentioned? Let me take a look.
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
The following works for me:

faxResolution: 'High'

Please note that it should be 'High' instead of 'HIGH' or 'high'.
Photo of e-Emphasys EET

e-Emphasys EET

  • 380 Points 250 badge 2x thumb
Hi Tyler,

Thanks for the reply.

its not just about the fax , but also with other parameters. i tried the code that is there on github.

           var sdk = new SDK(appKey, appSecret, sandboxServer, "Dispatcher", "");
            // Password Grant Authorization
            var response1 = sdk.Platform.Login(username, extension, password, true);
            const string text = "Hello world!";           
            var json = "{\"to\":[{\"phoneNumber\":\"+912267676262\"}],\"faxResolution\":\"High\"}";
            var request = new Request("/restapi/v1.0/account/~/extension/~/fax", json);
            var response = sdk.Platform.Post(request);

here is the sample code.
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
To send fax, you need to use FormData. Please check the code here: https://github.com/tylerlong/rc-commander/blob/master/rc-fax.js  

There are two issues in your code:  1. "const string text = ..." is declared but unused.  2. you are not using FormData to send fax.
Photo of e-Emphasys EET

e-Emphasys EET

  • 380 Points 250 badge 2x thumb
Hi Tyler,

My code worked the attachment was needed i guess. got a proper response frrom the API.

But just one question where can i check the api log for the fax?
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
https://github.com/ringcentral/ringcentral-js#fax  The official doc says you should use FormData. I doubt that it will ever work if you don't use it. 

Only RingCentral staff have access to api logs on server side. I am not sure if that is what you mean.
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
Oops! Are you writing program in C# or JS? If we are talking about C# instead, please check here for a sample to send fax: http://ringcentral-csharp.readthedocs.io/en/latest/
Photo of e-Emphasys EET

e-Emphasys EET

  • 380 Points 250 badge 2x thumb
i am trying c#.

yes i used the same code and it worked fine. i checked the status through message list api it says International calling disabled.

But i checked the setting it is on over there. Can you please help.
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
If you don't have issues about fax sending any more. I suggest you creating a new ticket for the new issues and describe your question in detail. To be frank I am not an expert on account configuration. So it's better for you to create a new ticket with title "International calling disabled issue".  By doing that you will get help from others sooner.
Photo of e-Emphasys EET

e-Emphasys EET

  • 380 Points 250 badge 2x thumb
okay . Thanks a lot for your help. :)