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
SendFaxMessageRequest() not defined in RingCentralSDK after version 1.1
Tags: sdk
Dec 4, 2020 at 7:03am   •   5 replies  •  0 likes
Bruce Ganek

I downloaded the sample C# app and can successfully send a fax. When I try to create my own program, I get that SendFaxMessageRequest is not defined. I have "using RingCentral" at the top of the program.

var requestParams = new SendFaxMessageRequest();


The sample was using RingCentral.Net 1.1.1. I went up to version 4.1 and get the SendFaxMessageRequest error.

Playing around a bit, it appears to happen for any version of the SDK from 2.0 on.

Is there different code I should be using instead of the sample. I'm thinking I don't want to go to production with version 1.1.1 of the .net SDK.


This is a 3.1 .net Code console application.

Thank you,

Bruce

5 Answers
answered on Dec 4, 2020 at 10:04am  

It is expected because from 1.1 to the 4.1 there is a major version update and there are breaking changes.


Check here https://github.com/ringcentral/RingCentral.Net/blob/master/samples.md#create-fax-message and you will see the class has been renamed to CreateFaxMessageRequest


By the way, the sample code page is for the latest SDK which is currently 5.0.0-beta2. You may need to check page history for 4.1.



 0
answered on Dec 4, 2020 at 11:48am  

That was the link I was missing I believe, thank you.


Bruce


 0
answered on Dec 4, 2020 at 11:36am  

Is there an updated sample app for sending faxes?

I want to make sure I'm hitting all of the necessary parameters.

Thank you,

Bruce


 0
answered on Dec 4, 2020 at 10:49am  

Thank you, I can take a look there. This was the page I was using from your website and the subsequent code.


https://developers.ringcentral.com/guide/messaging/fax/sending-faxes#c#.


Does that sample page need to be updated?



 0
on Dec 4, 2020 at 11:41am   •  0 likes

The dev guide is not updated. I will update it accordingly.

The correct object is CreateFaxMessageRequest().

answered on Dec 4, 2020 at 11:45am  

The sample page is always in-sync with the SDK source code, so yes it updates whenever the SDK source code updates.


Check this test case file: https://github.com/ringcentral/RingCentral.Net/blob/master/RingCentral.Tests/FaxTest.cs

The first way(simplest one) is good for most users.


You don't have to specify all the parameters, by the way. Just read the parameters comments to get their meanings to decide whether you need to specify or not.


 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