generated from errbufferoverfl/ruby-hammerhead
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from sfadriaan/flow-get-recordid
Add get recordId in flow article
- Loading branch information
Showing
6 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Salesforce core | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
how-to-get-record-id-record-triggered-flow |
26 changes: 26 additions & 0 deletions
26
how-to/core/how-to-get-record-id-record-triggered-flow.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
How to get ``recordId`` in record triggered flow | ||
================================================ | ||
|
||
For record triggered flows the record that triggered the flow is automatically stored in the global variable ``{!$Record}``. | ||
You do not need to create a variable to store it as you can directly access it and any of the fields on the record: | ||
|
||
* Record Id = ``{!$Record.Id}``. | ||
* Record Type Name = ``{!$Record.RecordType.DeveloperName}``. | ||
* Record Name = ``{!$Record.Name}``. | ||
* Any other field = ``{!$Record.FIELD_NAME}``. | ||
|
||
There is also a global variable ``{!$Flow.CurrentRecord}`` that contains the Record Id, but you can get all you need with ``{!$Record}``. | ||
|
||
.. tab:: {!$Record.Id} | ||
|
||
.. figure:: /images/salesforce-core-record-id.png | ||
|
||
.. tab:: {!$Flow.CurrentRecord} | ||
|
||
.. figure:: /images/salesforce-core-flow-current-record.png | ||
|
||
.. tab:: {!$Record.FIELD_NAME} | ||
|
||
.. figure:: /images/salesforce-core-record-field-name.png | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.