![]() ![]() Send an SMS message from Apex code The developer would first create an instance of the SMS History object, populate all required fields, and then insert the instance of that object using a database insert. Set its value as OUT for sending out message. Identifier of the Object Type smagicinteract ObjectType c object from which No message will be sent out With 1.49 onwards, this new field is used to indicate Direction smagicinteract Direction c it s an outgoing or Yes incoming message. It should be 0 by default.ģ This is indexed and unique field External Field smagicinteract external_field c used as a reference to Yes update delivery reports. If set 1, trigger is deactivated, so message Disable SMS on Trigger smagicinteract disablesmsontrigger c won t be sent out only record will be Yes created. SMSText smagicinteract SMSText c Content of message Yes This is used to control trigger. Name of person whom Name smagicinteract Name c you are No sending this message to. Name Field API name Purpose Required Phonenumber or business SenderId smagicinteract SenderId c identity of Yes your businessĢ Phone number of Mobile Number smagicinteract PhoneNumber c Contact/Lead whom you are Yes sending message to. Continue reading below to see how to send a SMS message from Apex code. This table contains fields that must be populated to successfully send messages from Apex. ![]() Considering the need of complex customization for implementing various business workflows, we have provided a simple way to send SMS from Apex code. Object & Fields Information There is a custom object in the SMSMagic Interact Managed package known as SMS History, and the corresponding API name is smagicinteract smsmagic c. ![]() 1 Send a SMS Message from Apex Prerequisites The developer will need proficiency in: Object model Apex programming The APIs can be worked on via this link Apex is a strongly-typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Salesforce Lightning Platform server, together with calls to the API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |