sObject type 'FlowTestCoverage' is not supported












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'









share|improve this question





























    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'









    share|improve this question



























      1












      1








      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'









      share|improve this question
















      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'






      code-coverage visual-workflow






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 27 at 18:03









      Jayant Das

      16.3k2926




      16.3k2926










      asked Feb 27 at 18:00









      J. NeilanJ. Neilan

      5882626




      5882626






















          1 Answer
          1






          active

          oldest

          votes


















          3














          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






          share|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 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 at 18:19











          • Do you know if only Autolaunched Flows require test coverage, or all Flows?

            – J. Neilan
            Feb 27 at 18:23











          • Seems to include all, you can find more details on the release notes.

            – Jayant Das
            Feb 27 at 18:26











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "459"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f251957%2fsobject-type-flowtestcoverage-is-not-supported%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          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






          share|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 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 at 18:19











          • Do you know if only Autolaunched Flows require test coverage, or all Flows?

            – J. Neilan
            Feb 27 at 18:23











          • Seems to include all, you can find more details on the release notes.

            – Jayant Das
            Feb 27 at 18:26
















          3














          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






          share|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 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 at 18:19











          • Do you know if only Autolaunched Flows require test coverage, or all Flows?

            – J. Neilan
            Feb 27 at 18:23











          • Seems to include all, you can find more details on the release notes.

            – Jayant Das
            Feb 27 at 18:26














          3












          3








          3







          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 27 at 18:03









          Jayant DasJayant Das

          16.3k2926




          16.3k2926













          • 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 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 at 18:19











          • Do you know if only Autolaunched Flows require test coverage, or all Flows?

            – J. Neilan
            Feb 27 at 18:23











          • Seems to include all, you can find more details on the release notes.

            – Jayant Das
            Feb 27 at 18:26



















          • 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 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 at 18:19











          • Do you know if only Autolaunched Flows require test coverage, or all Flows?

            – J. Neilan
            Feb 27 at 18:23











          • Seems to include all, you can find more details on the release notes.

            – Jayant Das
            Feb 27 at 18:26

















          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 at 18:17





          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 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 at 18:19





          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 at 18:19













          Do you know if only Autolaunched Flows require test coverage, or all Flows?

          – J. Neilan
          Feb 27 at 18:23





          Do you know if only Autolaunched Flows require test coverage, or all Flows?

          – J. Neilan
          Feb 27 at 18:23













          Seems to include all, you can find more details on the release notes.

          – Jayant Das
          Feb 27 at 18:26





          Seems to include all, you can find more details on the release notes.

          – Jayant Das
          Feb 27 at 18:26


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Salesforce Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f251957%2fsobject-type-flowtestcoverage-is-not-supported%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?