Skip to content

FlowLogEntry throws exception for empty recordId #826

@dominykasvitkus

Description

@dominykasvitkus

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

v4.15.3

New Bug Summary

I'm using a subflow as a fault path for elements, one of the subflow's variables is recordId which is set as input. In subflow, I have Flow Log Entry action and I've set recordId to be assigned from my input variable to action.

When recordId is null/empty my flow catches exception:

An Apex error occurred: System.StringException: Invalid id:

I could make a workaround for this by checking if recordId is provided and only then use it in the action, but this makes it more complicated. Would it be possible to make Apex Action to ignore null/empty recordId?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions