0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

メールアドレスの検証

Last updated at Posted at 2020-10-13

ヘルプ記事より

以下の数式でチェックできるとヘルプに書かれています。
オブジェクトの入力規制の場合は Not()を更に追加
フロー画面のユーザ入力の検証は以下のまま

REGEX({!検証したいアドレス},"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}")

しかし、上記だと1つのメールアドレスにしか対応できません。
**,**で区分された複数アドレスの場合は以下のようになります。

REGEX({!検証したいアドレス},"([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}){1}(,[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4})*$")

正規表現で複数チェックをする場合のポイントは太字のところ。

"([a-zA-Z0-9.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}){1}(,[a-zA-Z0-9.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$")

実際の質問から

Email Message objectに設定できる。
image.png
https://trailhead.salesforce.com/trailblazer-community/download/file/0694S000000FyudQAC

消されている

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?