Get record Id in record triggered flow


Have a record triggered flow and set variable name as recordId, type=record. The recordId is set as input and output. When I debug the flow and pick a named record as input recorId is set to null. Issues remains with trigger set to created and created/updated record. Is it not possible to grab the recordId using the flow debugger ? Same null result when setting text var as RecordId to the $Flow.CurrentRecord.

Best Answer

$Flow.CurrentRecord is a Record, not an Id. If you want the Id, use $Flow.CurrentRecord.Id. Just creating a variable called recordId won't automatically give you the Id in a record-triggered flow. This parameter would be useful for other kinds of Flow scenarios, such as making an Action that calls a Flow.

Related Topic