Skip to main content
Question

I want to pass attatchment with sms using rest api in apex

  • August 26, 2020
  • 1 reply
  • 284 views

I have written apex code to send sms its working fine but now i need to send the attatchment with same

I have converted same in Blob But not getting how to pass same as parameter in smsbody

String smsBody = '{"from":{"phoneNumber":"' + fromPhoneNumber + '"},"text":"' + message+ '","to":[{"phoneNumber":"'+ tonumber+'"}]}';


1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2313 replies
  • August 26, 2020

I am not an expert on SF Apex, but you can use this REST API to send MMS message (SMS with attachment)

https://developers.ringcentral.com/guide/messaging/sms/sending-images


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings