runNamedQuery()

No need to apologize, it's much easier to help with proper details. Thanks for those.

Make sure you have configured the Named Query as scalar. Then what you need is:

reportValue = system.db.runNamedQuery("Select Report Number B", {})

No, its just in a different place now.

See this post:

3 Likes