How to automatically enable Recordtypes for Scratch org admin

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite












Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile.



Is there any way to automize that?










share|improve this question



























    up vote
    2
    down vote

    favorite












    Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile.



    Is there any way to automize that?










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile.



      Is there any way to automize that?










      share|improve this question













      Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile.



      Is there any way to automize that?







      salesforcedx salesforcedx-cli scratch-org






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Robert Sösemann

      12.4k1070206




      12.4k1070206




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          @Robert. Why would you not add a secondary packageDirectory that is not included in the package version build but contains a profile metadata item that maps the record type for the profiles and would be pushed to the scratch org when you do a force:source:push ?






          share|improve this answer




















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f236637%2fhow-to-automatically-enable-recordtypes-for-scratch-org-admin%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            @Robert. Why would you not add a secondary packageDirectory that is not included in the package version build but contains a profile metadata item that maps the record type for the profiles and would be pushed to the scratch org when you do a force:source:push ?






            share|improve this answer
























              up vote
              2
              down vote



              accepted










              @Robert. Why would you not add a secondary packageDirectory that is not included in the package version build but contains a profile metadata item that maps the record type for the profiles and would be pushed to the scratch org when you do a force:source:push ?






              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                @Robert. Why would you not add a secondary packageDirectory that is not included in the package version build but contains a profile metadata item that maps the record type for the profiles and would be pushed to the scratch org when you do a force:source:push ?






                share|improve this answer












                @Robert. Why would you not add a secondary packageDirectory that is not included in the package version build but contains a profile metadata item that maps the record type for the profiles and would be pushed to the scratch org when you do a force:source:push ?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 21 mins ago









                ImJohnMDaniel

                17316




                17316



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f236637%2fhow-to-automatically-enable-recordtypes-for-scratch-org-admin%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    One-line joke