Skip to main content
New Participant
August 26, 2020
Question

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

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
    Community Manager
    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