Ask Search:
Mahesh RaghuramanMahesh Raghuraman 
Hi Techies,

I am building a simple REST inbound API and sending some Contact record as JSON response. In @HttpGet, I simply return contact record, now how can I send Headers info. alone with this response?

Any suggestion is greatly appreciated.
Best Answer chosen by Mahesh Raghuraman
Anuj YadavAnuj Yadav
Hi Mahesh,
You can use standard RestResponse Class and can send the header information in the properties. For  more information visit the link

Joey MercorellaJoey Mercorella 
In the Salesforce system, there is a custom object that is called "Lead" with the API name "Lead__c" that cannot work with SMS Magic to send SMS through the customised button. It works with the custom object "Custom_Opportunity__c".

From SMS Magic's technician's explanation, the custom lead should not use the same name as the standard object and they wanted us to change the API Name. However, it has been working for a long time in the system and if we change it, our daily work cannot progress normally. (There are hundreds of customised features and code linking to that custom object, the de-reference and re-reference process will take too long time for us.)

Actually the Standard Lead's API name is "Lead" while the custom lead's API name is "Lead__c". I have no idea why SMS Magic could not make it work. Is there anyone with good idea to make it work?

Thanks a lot.
Best Answer chosen by Joey Mercorella
Vinay ChaturvediVinay Chaturvedi
Hi Joey,
I won't recommend you to change the API name in any case if you are using it in different functionalities as well.
As to bring new functionlity in salesforce ecosystem will require a lot of rework and regression testing -and hence a not recommended approach.
Now if the SMS Magic represntative has mentioned that you cannot keep same name for both of them,then please check with them that are they talking about API name or Label?
Because in your case although the label would be same but not API names.
And if they confirm for API name,then for sure then they should be able to solve this issue.
Hope this helps!!
Julien WagnerJulien Wagner 

Everything is in the title. It works just fine with an iPhone, but it doesn't work with an iPad, even though the ability to send sms from the iPad is activated.

Thanks in advance.
Best Answer chosen by Julien Wagner
Dnyaneshwar AghawDnyaneshwar Aghaw
Send SMS messages in Salesforce for Android and iOS
Knowledge Article Number000240916

DescriptionSalesforce for Android and iOS users are  able to send SMS text messages from the Accounts, Contacts, Leads, and Person Accounts Objects with an formatted phone number.  

By default, the action is included at the end of the Salesforce for Android and iOS and Lightning Experience Actions section on the object’s page layout.

Considerations for sending SMS messages in Salesforce for Android and iOS
Users are able to send texts from the browser version on mobile devices but not when emulating from a desktop.
A listed phone number must be available on the page layout and contain a valid number for the SMS action to appear.

Admins can remove the action from page layouts if needed to prevent this feature to end users.
Sent text messages are currently not save in the activity history of the record.
The Send Text Action is limited to only phone fields much like the Call Action.
*** This action does not work in Ipad at this time.due to limitations with SMS messaging via IPad.
John FelixJohn Felix 
I'm not sure whether is this the right place to ask this query. Is there any way to connect external API to send SMS from Salesforce Marketing Cloud.
Best Answer chosen by John Felix
Ashutosh TripathiAshutosh Tripathi
Hi John,

Although there is no default functionality in Salesforce to send SMS, there are some apps in the appexchange which can send SMS

Just search for the keyword 'SMS' in the appexchange.

If you have a third party SMS subscription, then you would have to write your own code for apex callouts or outbound messaging, but first have a look at the appexchange apps.

You can check image screen Send SMS using APEX API (

If you want to build your own using apex then check this below resource links contains the example with code:

Here's is rest api example for that:

I would suggest to check the appexchange app first which easy and point-click but if your specially looking for code then you have lot of options as I shared above.

I really appreciate your time to make this post here but I would like to inform you that this community is focused on help with declarative configuration changes and non-programmatic solutions.

You have a better chance of getting relevant answers if you post it on one of the following forums [lots of talented developers out there who must have worked on similar problems before.

StackExchange []
Official Developer Forum []

For any configuration changes and point and click design solutions, feel free to post in this community and we will be glad to help you out. 

Hope this helps. 

Good luck!!
Alaa AljelaniAlaa Aljelani 
I really need your help in understanding the integration between SMS gateway and salesforce.
I'm not personally familiar with it. As I haven't done before.

How can I integrate them via API? how to do this?

If anyone can give me a detailed overview about it.
Best Answer chosen by Miglena ( 
John MitchellJohn Mitchell
This is a big question. 

Exhaustive documentation regarding Salesforce's APIs can be found here:

I do not have information regarding SMS gateway or their API structure.

You may be better served to ask this question on the developer community ( as this answers community is primarily focused on configurable solutions without code.
Tarjani PilkingtonTarjani Pilkington 

What are the different options to send a text message via Salesforce?  Any thoughts on app vs ability to use Salesforce functionality

Best Answer chosen by Tarjani Pilkington
Ashutosh TripathiAshutosh Tripathi
Hi Tarjani,

Although there is no default functionality in Salesforce to send SMS, there are some apps in the appexchange which can send SMS

Just search for the keyword 'SMS' in the appexchange.

If you want to integrate using REST then please check the below resource links having sample code for it.

You can also use Zapier, check this out how to integrate SMS using Zapier:

So either you have to go with the appexchange apps or custom code. I would suggest to use any app exchange app, that is easy to install and use.

You can also reach out to the package provider in case of any issue.

Choice is yours.

Good Lcuk!
Raul Cañada MoyanoRaul Cañada Moyano 
Does anyone knows how to get the SMS tracking using SOAP API. I am able to get the messages sent using the SMSMTObject but I am not able to retrieve the status of the SMS message.

  ["EventDate", "Carrier", "ObjectID", "Subscriber.ID", "Subscriber.SubscriberKey", 
  function( err, response ) {
    if ( err ) {
      // error here
      console.log( err );

What I need is the status of the message: (Delivered, undelivered, etc...) but I am not able to find the object of property to get this data.

Thanks in advance
Best Answer chosen by Miglena ( 
Jeff MayJeff May
This Answers Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at where the forums and participants are geared toward programming troubleshooting and support.
Aaron BeattyAaron Beatty 
Hello trailblazers!

I'm trying to track down some documentation to help us configure a new MobileConnect instance.  The pages have a bit of information on using the tool once it is configured, but I'm looking for documentation and/or a workbook to help us configure MobileConnect.  Anyone have any resources that might help?

Best Answer chosen by Aaron Beatty
Nicole PomponioNicole Pomponio
I was able to find this link, it has getting started and account administration, importing contacts and creating and managing messaging -
Hi all,

I am trying to send SMSs using Mobile Connect within Marketing Cloud, but I find out that there is no short or long code registered in my Marketing Cloud instance. How can I set up a short or long code for SMS sendings? Do I have to ask my account representative to activate them?
Best Answer chosen by Miglena ( 
Brian BellBrian Bell
Thank you for your question.  You will need to reach out to your account representative to obtain a short or long code. Code registration requires a services engagement and can take anywhere from a couple of days to a couple of weeks based on the country you are trying to send to.  Code provisioning is a country specific process but the Marketing Cloud works with the world's top aggregators in order to ensure you experience the highest amount of success through this channel.

When beginning the code acquisition process, it is helpful to know the countries you would like to send to, the use cases you would like to complete and the size of your potential audience.  Countries have different requirements based on what type of messages your audience will receive.
Best Answer chosen by Miglena ( 
Marketing Cloud - DO NOT FOLLOWMarketing Cloud - DO NOT FOLLOW
I created an Outbound Message in MobileConnect with extra characters, and it gives you a warning on screen that it will send as 2 separate messages. I tested this and it did send in two messages.