Documentation Index

Fetch the complete documentation index at: https://guide.mogli.com/llms.txt

Use this file to discover all available pages before exploring further.

Blocking Unwanted Incoming Messages

Prev Next

Blocking unwanted incoming messages is accomplished through two separate flows to both prevent a notification and delete the message. This is useful if a client is receiving unwanted spam or inappropriate messages.

Option 1: Update the Status to Prevent Notification

This flow is a Record-Triggered Flow on the SMS Object that is triggered when A record is created. It's optimized for Fast Field Updates.

Configure Start

  1. Select Object: SMS.

  2. Configure Trigger: A record is created.

  3. Set Entry Conditions:

    • Condition Requirements: All Conditions Are Met (AND).

    • $\text{Field: Mogli_SMS__Phone_Number__c}$.

    • Operator: Equals.

    • Value: the number you want to block

  4. Optimize for: Fast Field Updates.

  5. Click Done.

Update Records (Update SMS)

  1. Label: Update SMS.

  2. API Name: $\text{Update_SMS}$.

  3. How to Find Records to Update and Set Their Values: Select Use the SMS record that triggered the flow.

  4. Set Filter Conditions: Condition Requirements to Update Record: None—Always Update Record.

  5. Set Field Values for the SMS Record:

    • $\text{Field: Mogli_SMS__Status__c}$.

    • Value: Empty String (Not Null).

  6. Click Done.

Option 2: Delete the Message Asynchronously

This flow is also a Record-Triggered Flow on the SMS Object triggered when A record is created. It is optimized for Actions and Related Records and runs the deletion Asynchronously.

Configure Start

  1. Select Object: SMS.

  2. Configure Trigger: A record is created.

  3. Set Entry Conditions:

    • Condition Requirements: All Conditions Are Met (AND).

    • $\text{Field: Mogli_SMS__Phone_Number__c}$.

    • Operator: Equals.

    • Value: the number you want to block.

  4. Optimize for: Actions and Related Records.

  5. Check the box to Include a Run Asynchronously path to access an external system after the original transaction for the triggering record is successfully committed.

  6. Click Done.

Delete Records (Delete SMS)

  1. Label: Delete SMS.

  2. API Name: $\text{Delete_SMS}$.

  3. How to Find Records to Delete: Select Use the IDs stored in a record variable or record collection variable.

  4. Select Record(s) to Delete: $\text{Triggering Mogli_SMS__SMS__c}$.

  5. Click Done.