Skip to content

使用 Flow 发送短信

Charket SMS 提供了一个 Apex action,可以通过 Flow 调用来发送短信。可以发送指定的模板,也可以发送模板指定的 SMS Content。

例如:创建一个 Screen Flow, 发送短信给满足条件的所有 Leads。

配置 Screen Flow

  1. 在 Setup 中搜索 Flow, 点击 New flow;
  2. 选择 Screen Flow, 点击 Create;
  3. 点击 Add Element, 在 Interaction 中选择 Screen;

1.png

  1. 在左侧 Input 中拖拽一个 Text 到中间区域,然后设置 Label 和 默认值。

2.png

  1. 点击 Done。

获取数据

  1. 点击 Add Element, 选择 Get Records;

3.png

  1. 进入 Name;
  2. Object 选择 Lead, 点击 Done;

配置 Action

  1. 点击 Add Element, 在 Logic 中选择 Loop;
  2. 输入 Name;
  3. 在 Collection Variable 中选择获取数据变量;

4.png

  1. 点击 Add Element, 选择 Action;
  2. 在左侧 Filter By 中选择 Charket;
  3. 在 Action 中搜索 Send SMS Message;

5.png

  1. 配置完成后,点击 Save;
  2. 点击 Activate 后,点击 Run。

Note:

Field Type Value Description Required
SMS Template ID ID SMS Template ID 短信模板 ID

SMS Template ID 或 SMS Content(二选一)

SMS Content

String

SMS Template Content

要发送的指定模板的内容
Mobile Number String Mobile Number 手机号码 必填
Asynchronous Action Boolean True/False 是否启动异步 job 可选
SMS Signature ID SMS Signature ID 短信签名 ID

腾讯发送国内短信必填

Current Object ID Field Reference [Lead].Id 设置自动 Merge 当前对象的数据 可选
Contact/Lead ID Field Reference [Lead].Id 发送短信通知后创建的SMS Messages 中是否关联Contact/Lead 可选

SMS Service Provider ID

String

 

SMS Service Provider ID

如果要发送 SMS Content ,则该值必填

 

注:

  • Schedule Flow:一定需要设置为 true
  • Platform Event - Trigger Flow,Autolaunched Flow (No Trigger) :建议设置为 true
  • Screen Flow/Record Trigger Flow:如果 Flow 配置了异步,则该参数可以配置成 false;如果 Flow 没有配置异步,则该参数设置成 true。

 

执行发送

flow 被 Activate 后,点击右上角的 Run, 然后点击 Next 发送。发送后可以在 SMS Message 中查看创建的数据。

Charket
扫码获得帮助