Skip to main content
New Participant
Aug 26, 2020 5:32 PM UTC
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
    Aug 26, 2020 8:53 PM UTC

    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