How to specify comment case owner
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
soap-api case case-comment
New contributor
New contributor
New contributor
asked 1 hour ago
user63305
111
111
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
- Go to Setup | Manage Users | Permission Sets.
- Click New.
- Enter Permission Set information such as 'Label' and 'Description'.
- Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses
- Click Save.
- On the next page, Go to System Permissions.
- Click Edit.
- 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.
- Click Save.
Assign the Permission Set
- Go to Setup | Manage Users | Permission Sets.
- Select the Permission Set for the 'Audit Fields.'
- Click Manage Assignments.
- Click Add Assignments.
- Select the User to whom you want to assign the 'Permission Set.'
- Click Assign.
- Click Done.
Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US
add a comment |
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
});
}
});
user63305 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
- Go to Setup | Manage Users | Permission Sets.
- Click New.
- Enter Permission Set information such as 'Label' and 'Description'.
- Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses
- Click Save.
- On the next page, Go to System Permissions.
- Click Edit.
- 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.
- Click Save.
Assign the Permission Set
- Go to Setup | Manage Users | Permission Sets.
- Select the Permission Set for the 'Audit Fields.'
- Click Manage Assignments.
- Click Add Assignments.
- Select the User to whom you want to assign the 'Permission Set.'
- Click Assign.
- Click Done.
Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US
add a comment |
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
- Go to Setup | Manage Users | Permission Sets.
- Click New.
- Enter Permission Set information such as 'Label' and 'Description'.
- Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses
- Click Save.
- On the next page, Go to System Permissions.
- Click Edit.
- 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.
- Click Save.
Assign the Permission Set
- Go to Setup | Manage Users | Permission Sets.
- Select the Permission Set for the 'Audit Fields.'
- Click Manage Assignments.
- Click Add Assignments.
- Select the User to whom you want to assign the 'Permission Set.'
- Click Assign.
- Click Done.
Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US
add a comment |
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
- Go to Setup | Manage Users | Permission Sets.
- Click New.
- Enter Permission Set information such as 'Label' and 'Description'.
- Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses
- Click Save.
- On the next page, Go to System Permissions.
- Click Edit.
- 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.
- Click Save.
Assign the Permission Set
- Go to Setup | Manage Users | Permission Sets.
- Select the Permission Set for the 'Audit Fields.'
- Click Manage Assignments.
- Click Add Assignments.
- Select the User to whom you want to assign the 'Permission Set.'
- Click Assign.
- Click Done.
Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US
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
- Go to Setup | Manage Users | Permission Sets.
- Click New.
- Enter Permission Set information such as 'Label' and 'Description'.
- Optionally, specify a 'User license' to restrict this Permission Set to Users with specific licenses
- Click Save.
- On the next page, Go to System Permissions.
- Click Edit.
- 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.
- Click Save.
Assign the Permission Set
- Go to Setup | Manage Users | Permission Sets.
- Select the Permission Set for the 'Audit Fields.'
- Click Manage Assignments.
- Click Add Assignments.
- Select the User to whom you want to assign the 'Permission Set.'
- Click Assign.
- Click Done.
Src: https://help.salesforce.com/articleView?id=000232909&type=1&language=en_US
answered 1 hour ago
Pranay Jaiswal
13.5k32351
13.5k32351
add a comment |
add a comment |
user63305 is a new contributor. Be nice, and check out our Code of Conduct.
user63305 is a new contributor. Be nice, and check out our Code of Conduct.
user63305 is a new contributor. Be nice, and check out our Code of Conduct.
user63305 is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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