新規Process Builderの際に、It’s invoked by another processを選択できます。
その意味は、このprocessはほかのprocessから呼び出すことができるということです。
業務は今まで接触少ないので。一般的シーンで紹介したいと思います。
二つのprocessを作成します。
パターン:
一つ目の:
Opportunityに関連するAccount IDが空でない場合、かつOpportunityのStage項目がClosed Lostの場合がございましたら、
Start a Process⇒Opportunityに関連するAccountをパラメータとして渡します。
二つ目の:
Accountの取引フラグ(カスタム項目:Checkbox)がTrueになっていることです。
まず、呼び出されるProcessから、
1、
Choose Object
Select an object to associate with the process*:Account
2、
Criteria Name:取引フラグ
Criteria for Executing Actions:No criteria—just execute the actions!
3、
Update Records
Action Name:取引フラグ=TRUE
Record:[Account]
Criteria for Updating Records:No criteria—just update the records!
Set new field values for the records you update
取引フラグ:True
これから、呼び出すProcessです。
1、
Object:Opportunity
Start the process:when a record is created or edited
2、
Criteria Name:Stage = Closed Lost
Criteria for Executing Actions:Conditions are met
Set Conditions
[Opportunity].Account.Id : Is null : False
[Opportunity].StageName : Equals : Closed Lost
Conditions:All of the conditions are met (AND)
3、
Start a Process
Action Name:Invoke process
Process:Opportunity更新するAccountフラグがTRUE
Set Process Variables
SObject:[Opportunity].Account
実際の画面を開いてます。
Opportunity:Dickenson Mobile Generators
関連するAccount Name:Dickenson plc
Account Name:Dickenson plc
取引フラグ:False
Opportunity:Dickenson Mobile Generatorsを編集します。
Saveを押下します。
Account Name:Dickenson plc画面に移動します。
取引フラグ:Trueの確認します。
これで完了致しました。
以上となります。
ご参考になれば幸いです。
Latest posts by zchao (see all)
- Auraでアクションボタン作成して画面のチェックボックス項目一括処理 - 2021年4月12日
- デフォルト項目値を含むレコード作成実例説明(defaultFieldValues) - 2021年1月9日
- Salesforce のノーコード・ローコード開発 - 2020年12月31日