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 https://developer.salesforce.com/docs/atlas.en-us.194.0.apexcode.meta/apexcode/apex_methods_system_restresponse.htm

Thanks,
Anuj
www.mirketa.com
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!!
Thanks
Vinay
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.

https://appexchange.salesforce.com

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 (http://www.screen-magic.com/send-sms-using-api/)

If you want to build your own using apex then check this below resource links contains the example with code:
http://www.clintslee.com/2010/07/19/send-sms-from-salesforce-build-your-own/

Here's is rest api example for that:
https://salesforce.stackexchange.com/questions/54297/how-do-i-send-smses-from-salesforce

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 [http://salesforce.stackexchange.com]
Official Developer Forum [https://developer.salesforce.com/forums]

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!!
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.
https://appexchange.salesforce.com/results?type=Apps&keywords=sms

If you want to integrate using REST then please check the below resource links having sample code for it.
https://salesforce.stackexchange.com/questions/54297/how-do-i-send-smses-from-salesforce

You can also use Zapier, check this out how to integrate SMS using Zapier:https://zapier.com/zapbook/salesforce/sms/

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.

SoapClient.retrieve(
  'SMSMTEvent',
  ["EventDate", "Carrier", "ObjectID", "Subscriber.ID", "Subscriber.SubscriberKey", 
    "SMSTriggeredSend.SmsSendId", 
    "SMSTriggeredSend.SMSTriggeredSendDefinition.ObjectID", 
    "SMSTriggeredSend.SMSTriggeredSendDefinition.CustomerKey"],
  options2,
  function( err, response ) {
    if ( err ) {
      // error here
      console.log( err );
      return;
    }

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
Raul
 
Best Answer chosen by Miglena (Salesforce.com) 
Jeff MayJeff May
This Answers Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at https://developer.salesforce.com where the forums and participants are geared toward programming troubleshooting and support.
mfernandezmfernandez 
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 (Salesforce.com) 
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 (Salesforce.com) 
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.
Ramesh KallooriRamesh Kalloori 
Hi All,

I want to send sms when the new order is created in salesforce but i don't want to use third pary apps. Can i send SMS from salesforce using Skype credit.

Thanks,
Ramesh
Best Answer chosen by Miglena (Salesforce.com) 
Vinay ChaturvediVinay Chaturvedi
Hi Ramesh,
You would require appexchnage product - Skype For Salesforce 
SFMC Adoption Team DO NOT FOLLOWSFMC Adoption Team DO NOT FOLLOW 
Can someone provide me with a valid phone number format that is required for all Countries.

i.e Australia : +61+mobile number
Best Answer chosen by Miglena (Salesforce.com) 
Marketing Cloud - DO NOT FOLLOWMarketing Cloud - DO NOT FOLLOW
We encourage E.164 number formatting for all global phone numbers. This format is the internationally-standardized format for all phone numbers, and it includes all the relevant information to route calls and SMS messages globally. E.164 numbers can have a maximum of fifteen digits and are usually written as follows: [+][country code][subscriber number including area code]. Phone numbers that are not formatted in E.164 may work, but it depends on the phone or handset that is being used as well as the carrier from which the call or SMS is being originated.

For example, to convert a US phone number (415 599 2671) to E.164 format, one would need to add the ‘+’ prefix and the country code (which is 1) in front of the number (+1 415 599 2671). In the UK and many other countries internationally, local dialing requires the addition of a 0 in front of the subscriber number. However, to use E.164 formatting, this 0 must be removed. A number such as 020 7183 8750 in the UK would be formatted as +44 20 7183 8750.
Marc TeclesMarc Tecles 
Hi,
we are trying to setup our Mobile Connect environment. We need a solution to track Undelivered SMS so we stop sending sms to phone numbers unused.
We have implemented the solution documented here : http://help.exacttarget.com/en/documentation/mobileconnect/reviewing_message_activity_in_mobileconnect/retrieving_information_on_undelivered_sms_messages_for_mobileconnect/

But it doesn't seems to work correctly.
Has anyone implemented a solution to track undelivered SMS ?

Sincerely,
Marc
Best Answer chosen by Marc Tecles
Marc TeclesMarc Tecles
Hi Jeff and thank you for your reply.
When we started using the solution above to track the undelivered sms the dataextension was allways empty. After checking with the support, it was a problem with the mobile connect solution that causes some undesired results.
Now after some more testing i can confirm that this solution works very well.

Marc