1

I am trying to run a query in the Developer Console to find the test coverage for a particular Flow I have created. However, I am getting the error:

sObject type 'FlowTestCoverage' is not supported

Does anyone know how I can find my test class coverage or is I am doing something wrong?

Query:

SELECT Id, ApexTestClassId, TestMethodName, FlowVersionId, NumElementsCovered, NumElementsNotCovered
FROM FlowTestCoverage
WHERE flowversionid='3001C000000Tta4'
4

FlowTestCoverage is part of Tooling API. If running from Query Editor in Developer Console, you need to enable Use Tooling API option in the Query Editor in Developer Console (option available besides Execute button, screenshot below).

enter image description here

|improve this answer|||||
  • Thanks. I did check that, but I don't get any rows in my results, nor do I get any errors below my query. – J. Neilan Feb 27 '19 at 18:17
  • You will need to verify if the records do exist or not. But the root cause of the error that you received was because of the option not being checked. – Jayant Das Feb 27 '19 at 18:19
  • Do you know if only Autolaunched Flows require test coverage, or all Flows? – J. Neilan Feb 27 '19 at 18:23
  • Seems to include all, you can find more details on the release notes. – Jayant Das Feb 27 '19 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.