Cross scope error from within a single scope

andrewoconn
Giga Guru

Hello everyone,

 

I am running into an issue where I have a flow that contains a script step that will delete records from a table. The flow and table in question are both within the same scope, and the table has Can delete checked off, however, when I test the flow, I get a cross scope error that says access to GlideRecord.deleteRecord from the scope is not allowed. I am unsure why I would run into a cross scope error when both the flow and table are of the same scope, so I am unsure how to fix it.