Skip to content

Commit

Permalink
Merge pull request #14 from sfadriaan/flow-get-recordid
Browse files Browse the repository at this point in the history
Add get recordId in flow article
  • Loading branch information
sfadriaan authored Aug 26, 2024
2 parents 718341a + 51c2007 commit 4c66d51
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions how-to/core/core-index.rst
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 how-to/core/how-to-get-record-id-record-triggered-flow.rst
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


1 change: 1 addition & 0 deletions how-to/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ The How-To section consists of different subsections to help you better navigate
:maxdepth: 1

omnistudio/omnistudio-index
core/core-index
Binary file added images/salesforce-core-flow-current-record.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/salesforce-core-record-field-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/salesforce-core-record-id.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c66d51

Please sign in to comment.