Skip to content

Conversation

krishnandusarkar
Copy link

@krishnandusarkar krishnandusarkar commented Aug 6, 2025

While attempting to log from Flows, I was encountering an unhandled exception when the Id field was either left blank.

This issue arose because the FlowLogEntry class defined the recordId parameter as an Id type, which is non-nullable.

To address this, I updated the recordId parameter to use the String type instead. I then added logic to convert it to an Id only if the value is not null. This change successfully resolved the issue.

@krishnandusarkar krishnandusarkar changed the title Fix Defect 826 Fix Defect #826 - FlowLogEntry throws exception for empty recordId Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant