Roboteka
Roboteka · Catalog · Remove phone from current entity

Remove phone from current entity

The Remove phone from current entity robot strips the given numbers from the card of the lead, contact or company whose business process or robot it runs in — no ID needed. Numbers are given as a list and matching is smart by default: 8 and +7 count as the same number. It returns a removed flag (Y/N), the number of phones removed and the list of removed values.

The robot removes one or more phones from the current entity — the lead, contact or company in whose business process it runs; no need to determine the ID, the entity is taken from the process context. The numbers to remove are given as a Multiple field (one per line). The match mode is a parameter: "smart" (default) reduces numbers to a 10-digit core and treats 8, +7 and a no-prefix form as the same number; "digits only" compares all digits without reduction; "exact match" compares the string as-is. Internally the robot reads the entity's phone list and deletes only the matching values by their identifiers — the other phones, as well as email and other contact data, are left untouched. If no number is found, no write happens. Typical cases: drop a client's old number when refreshing the card, remove a phone added by mistake during a process. It returns a Removed (Y/N) flag, the number of phones removed and the list of removed values — use them in the conditions and notifications of later steps. To remove a number from an arbitrary entity by its ID from another entity's process, use the Remove phone from entity by ID robot.

What input parameters does the robot accept?

Parameter Type Required? Default
Numbers to remove (one per line) string yes
How to match numbers select yes smart

What does the robot return?

Parameter Type
Removed (Y/N) string
How many numbers were removed int
Removed numbers string

Scenario: drop an old number when updating a contact

  1. In the contact business process add the Remove phone from current entity robot
  2. List the old phone in the numbers — no ID needed
  3. The robot returns Removed = Y and removed_count = 1 if the number was on the card

Related robots