Difference between revisions of "BulkSms new"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
[[Category:Email_and_SMS_Functions]] 
 
{{HelpFiles}}
 
{{HelpFiles}}
  
Line 130: Line 131:
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
 
Default is 0
 
Default is 0
 +
 
|- align="left" valign="top"
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
Line 135: Line 137:
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
Number  
+
Number
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
 
 
|- align="left" valign="top"
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
Line 147: Line 148:
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
{}
+
{} <!-- imported from file: 8089.htm-->
 
 
<!-- imported from file: 8089.htm-->
 
  
 
|}
 
|}

Revision as of 09:06, 14 July 2016


BulkSms_new

Create new bulk SMS object

Syntax

BulkSms_new(bulkSmsName, parentResourceId, mailTemplateResourceId, smsOutProviderName)

Arguments

  • bulkSmsName: (string) Name of the new bulk SMS
  • parentResourceId: (number) Parent resource id of the new bulk SMS
  • mailTemplateResourceId: (number) Mail template resource Id. The mail template that is to be used for the bulk Sms.
  • smsOutProviderName: (string) Case sensitive name of the outgoing SMS provider that should be used to send the SMS. Please look in your system SMS provider list to find the correct provider to use.

Return value

Bulk SMS object returned in an array:

Index

Data type

Value

BULKSMS_RESOURCE_ID

number

0

BULKSMS_NAME

string

Entered value

BULKSMS_PARENT_RESOURCE_ID

number

Entered value

BULKSMS_MAIL_TEMPLATE_RESOURCE_ID

number

Entered value

BULKSMS_OUT_PROVIDER_NAME

string

It should be an existing SMS provider by exact name from the SMS provider list.

BULKSMS_USER_RESOURCE_IDS

array

{}

BULKSMS_GROUP_RESOURCE_IDS

array

{}

BULKSMS_GROUP_TO_BE_REBUILD_RESOURCE_IDS

array

{}

BULKSMS_NO_IN_OUT_QUEUE

Number (read only)

Default is 0

BULKSMS_NO_OF_SENT

Number (read only)

Default is 0

BULKSMS_DEPENDANT_BULKMAIL

Number

BULKSMS_SELECTED_HISTORY

array(read only)

{}


Example

string bulkSmsName = "TestBulkSMS";

number parentResourceId = 34778803;

number mailTemplateResourceId = 501537;

string smsOutProviderName= "TeleCo"

array newBS = BulkSms_new(bulkSmsName, parentResourceId, mailTemplateResourceId, smsOutProviderName);

print(newBS); //{35,0,TestBulkSMS,34778803,501537,TeleCo,{},{},{},0,0}

Availability

Version 5.8.1