LoginSignup
0
0

More than 1 year has passed since last update.

フローを使って連番を取得する

Last updated at Posted at 2023-05-16

以下の質問用に私の練習としてフローを作ってみました。

全体のイメージ

image.png

数式 varMax2

image.png

IF( ISBLANK({!getRecord.serialNumberForFlow__c}) ,0, {!getRecord.serialNumberForFlow__c})

数式 setMax

image.png

{!varMax2} + 1

数式 setCategoryNumber

image.png

TEXT({!$Record.category__c}) & "-" & LPAD(TEXT({!setMax}), 4, "0")

レコードトリガーフロー 開始

image.png

カテゴリーが同じ管理用連番の最大値を取得

ポイントは管理用のフローの数値がNull以外を検索すること。これがないとこのレコード自体を検索している感じですね。

image.png

image.png

0
0
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
0