Action registered_users__check_phone
System ID:
action_registered_users__check_phone
In the scenario also:registered_users__check_phone
Description
Prepares a phone number for registration / lookup. Takes the phone from a shared contact (user_request.contact.phone) or from the reg_phone constant, strips +, and for Ukrainian numbers normalizes to 380XXXXXXXXX. Writes the result to reg_phone.
Next you usually call registered_users__set or registered_users__get with check_by_phone: true.
Events (scenario branches)
| Event | When it occurs |
|---|---|
| success | Phone found and normalized |
| error | No phone in contact / constant, or format does not match |
Parameters
No parameters in the node JSON ({}).
Phone sources:
| Source | Description |
|---|---|
user_request.contact.phone | Number from shared contact |
constant reg_phone | Already stored number (validated against UA pattern) |
Configuration example
Node config:
{}
Constants (if the number was already entered as text):
{
"reg_phone": "0501234567"
}
After success, reg_phone will be 380501234567.