How to specify comment case owner












3















I am new using salesforce and I already created my case, and now I need to create comments from customer and customerSupport(both), but when I try to specify that in soap API like this:



https://xxxx/services/data/v39.0/sobjects/CaseComment



{
"CommentBody": "test",
"IsPublished": true,
"ParentId": "{xxx}",
"CreatedById": "{xxxxx}"
}


The answer of the service is:



[
{
"message": "Unable to create/update fields: CreatedById. Please check the security settings of this field and verify that it is read/write for your profile or permission set.",
"errorCode": "INVALID_FIELD_FOR_INSERT_UPDATE",
"fields": [
"CreatedById"
]
}
]


Maybe "CreatedById" is not a field correct to know who created the comment before, Can you help with this? I want to know where and how I can to define a case comment owner in some way










share|improve this question



























    3















    I am new using salesforce and I already created my case, and now I need to create comments from customer and customerSupport(both), but when I try to specify that in soap API like this:



    https://xxxx/services/data/v39.0/sobjects/CaseComment



    {
    "CommentBody": "test",
    "IsPublished": true,
    "ParentId": "{xxx}",
    "CreatedById": "{xxxxx}"
    }


    The answer of the service is:



    [
    {
    "message": "Unable to create/update fields: CreatedById. Please check the security settings of this field and verify that it is read/write for your profile or permission set.",
    "errorCode": "INVALID_FIELD_FOR_INSERT_UPDATE",
    "fields": [
    "CreatedById"
    ]
    }
    ]


    Maybe "CreatedById" is not a field correct to know who created the comment before, Can you help with this? I want to know where and how I can to define a case comment owner in some way










    share|improve this question

























      3












      3








      3








      I am new using salesforce and I already created my case, and now I need to create comments from customer and customerSupport(both), but when I try to specify that in soap API like this:



      https://xxxx/services/data/v39.0/sobjects/CaseComment



      {
      "CommentBody": "test",
      "IsPublished": true,
      "ParentId": "{xxx}",
      "CreatedById": "{xxxxx}"
      }


      The answer of the service is:



      [
      {
      "message": "Unable to create/update fields: CreatedById. Please check the security settings of this field and verify that it is read/write for your profile or permission set.",
      "errorCode": "INVALID_FIELD_FOR_INSERT_UPDATE",
      "fields": [
      "CreatedById"
      ]
      }
      ]


      Maybe "CreatedById" is not a field correct to know who created the comment before, Can you help with this? I want to know where and how I can to define a case comment owner in some way










      share|improve this question














      I am new using salesforce and I already created my case, and now I need to create comments from customer and customerSupport(both), but when I try to specify that in soap API like this:



      https://xxxx/services/data/v39.0/sobjects/CaseComment



      {
      "CommentBody": "test",
      "IsPublished": true,
      "ParentId": "{xxx}",
      "CreatedById": "{xxxxx}"
      }


      The answer of the service is:



      [
      {
      "message": "Unable to create/update fields: CreatedById. Please check the security settings of this field and verify that it is read/write for your profile or permission set.",
      "errorCode": "INVALID_FIELD_FOR_INSERT_UPDATE",
      "fields": [
      "CreatedById"
      ]
      }
      ]


      Maybe "CreatedById" is not a field correct to know who created the comment before, Can you help with this? I want to know where and how I can to define a case comment owner in some way







      soap-api case case-comment






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 16:09









      user63305user63305

      161




      161






















          1 Answer
          1






          active

          oldest

          votes


















          5














          You have to enable Create Audit Fields permissions from the SF UI to set createdById and CreatedDate




          Set Audit Fields upon Record Creation - Allow the user to set audit
          fields (like "Created By" or "Last Modified By") when you create a
          record via API importing tools like Data Loader.




          Src: https://help.salesforce.com/articleView?id=000213290&type=1



          If you are using a System - Admin profile you have to create a permission set with Create Audit Fields mentioned in the below docs



          Create a Permission Set





          1. Go to Setup | Manage Users | Permission Sets.

          2. Click New.

          3. Enter Permission Set information such as 'Label' and 'Description'.

          4. Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses

          5. Click Save.

          6. On the next page, Go to System Permissions.

          7. Click Edit.

          8. Find 'Set Audit Fields upon Record Creation' and check the box for it. Note: If you do not see this option it's likely that 'Set Audit
            Fields upon Record Creation' and 'Update Records with Inactive Owners'
            is not currently enabled.

          9. Click Save.




          Assign the Permission Set





          1. Go to Setup | Manage Users | Permission Sets.

          2. Select the Permission Set for the 'Audit Fields.'

          3. Click Manage Assignments.

          4. Click Add Assignments.

          5. Select the User to whom you want to assign the 'Permission Set.'

          6. Click Assign.

          7. Click Done.




          Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US






          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',
            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%2f245214%2fhow-to-specify-comment-case-owner%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









            5














            You have to enable Create Audit Fields permissions from the SF UI to set createdById and CreatedDate




            Set Audit Fields upon Record Creation - Allow the user to set audit
            fields (like "Created By" or "Last Modified By") when you create a
            record via API importing tools like Data Loader.




            Src: https://help.salesforce.com/articleView?id=000213290&type=1



            If you are using a System - Admin profile you have to create a permission set with Create Audit Fields mentioned in the below docs



            Create a Permission Set





            1. Go to Setup | Manage Users | Permission Sets.

            2. Click New.

            3. Enter Permission Set information such as 'Label' and 'Description'.

            4. Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses

            5. Click Save.

            6. On the next page, Go to System Permissions.

            7. Click Edit.

            8. Find 'Set Audit Fields upon Record Creation' and check the box for it. Note: If you do not see this option it's likely that 'Set Audit
              Fields upon Record Creation' and 'Update Records with Inactive Owners'
              is not currently enabled.

            9. Click Save.




            Assign the Permission Set





            1. Go to Setup | Manage Users | Permission Sets.

            2. Select the Permission Set for the 'Audit Fields.'

            3. Click Manage Assignments.

            4. Click Add Assignments.

            5. Select the User to whom you want to assign the 'Permission Set.'

            6. Click Assign.

            7. Click Done.




            Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US






            share|improve this answer




























              5














              You have to enable Create Audit Fields permissions from the SF UI to set createdById and CreatedDate




              Set Audit Fields upon Record Creation - Allow the user to set audit
              fields (like "Created By" or "Last Modified By") when you create a
              record via API importing tools like Data Loader.




              Src: https://help.salesforce.com/articleView?id=000213290&type=1



              If you are using a System - Admin profile you have to create a permission set with Create Audit Fields mentioned in the below docs



              Create a Permission Set





              1. Go to Setup | Manage Users | Permission Sets.

              2. Click New.

              3. Enter Permission Set information such as 'Label' and 'Description'.

              4. Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses

              5. Click Save.

              6. On the next page, Go to System Permissions.

              7. Click Edit.

              8. Find 'Set Audit Fields upon Record Creation' and check the box for it. Note: If you do not see this option it's likely that 'Set Audit
                Fields upon Record Creation' and 'Update Records with Inactive Owners'
                is not currently enabled.

              9. Click Save.




              Assign the Permission Set





              1. Go to Setup | Manage Users | Permission Sets.

              2. Select the Permission Set for the 'Audit Fields.'

              3. Click Manage Assignments.

              4. Click Add Assignments.

              5. Select the User to whom you want to assign the 'Permission Set.'

              6. Click Assign.

              7. Click Done.




              Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US






              share|improve this answer


























                5












                5








                5







                You have to enable Create Audit Fields permissions from the SF UI to set createdById and CreatedDate




                Set Audit Fields upon Record Creation - Allow the user to set audit
                fields (like "Created By" or "Last Modified By") when you create a
                record via API importing tools like Data Loader.




                Src: https://help.salesforce.com/articleView?id=000213290&type=1



                If you are using a System - Admin profile you have to create a permission set with Create Audit Fields mentioned in the below docs



                Create a Permission Set





                1. Go to Setup | Manage Users | Permission Sets.

                2. Click New.

                3. Enter Permission Set information such as 'Label' and 'Description'.

                4. Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses

                5. Click Save.

                6. On the next page, Go to System Permissions.

                7. Click Edit.

                8. Find 'Set Audit Fields upon Record Creation' and check the box for it. Note: If you do not see this option it's likely that 'Set Audit
                  Fields upon Record Creation' and 'Update Records with Inactive Owners'
                  is not currently enabled.

                9. Click Save.




                Assign the Permission Set





                1. Go to Setup | Manage Users | Permission Sets.

                2. Select the Permission Set for the 'Audit Fields.'

                3. Click Manage Assignments.

                4. Click Add Assignments.

                5. Select the User to whom you want to assign the 'Permission Set.'

                6. Click Assign.

                7. Click Done.




                Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US






                share|improve this answer













                You have to enable Create Audit Fields permissions from the SF UI to set createdById and CreatedDate




                Set Audit Fields upon Record Creation - Allow the user to set audit
                fields (like "Created By" or "Last Modified By") when you create a
                record via API importing tools like Data Loader.




                Src: https://help.salesforce.com/articleView?id=000213290&type=1



                If you are using a System - Admin profile you have to create a permission set with Create Audit Fields mentioned in the below docs



                Create a Permission Set





                1. Go to Setup | Manage Users | Permission Sets.

                2. Click New.

                3. Enter Permission Set information such as 'Label' and 'Description'.

                4. Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses

                5. Click Save.

                6. On the next page, Go to System Permissions.

                7. Click Edit.

                8. Find 'Set Audit Fields upon Record Creation' and check the box for it. Note: If you do not see this option it's likely that 'Set Audit
                  Fields upon Record Creation' and 'Update Records with Inactive Owners'
                  is not currently enabled.

                9. Click Save.




                Assign the Permission Set





                1. Go to Setup | Manage Users | Permission Sets.

                2. Select the Permission Set for the 'Audit Fields.'

                3. Click Manage Assignments.

                4. Click Add Assignments.

                5. Select the User to whom you want to assign the 'Permission Set.'

                6. Click Assign.

                7. Click Done.




                Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 2 at 16:15









                Pranay JaiswalPranay Jaiswal

                17.8k42855




                17.8k42855






























                    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%2f245214%2fhow-to-specify-comment-case-owner%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

                    Angular Downloading a file using contenturl with Basic Authentication

                    Olmecas

                    Can't read property showImagePicker of undefined in react native iOS