You need to sign in to do that
Don't have an account?
J_Hinder
Case Comment Question
I'm getting this error when I try to create a Case Comment via the API
Unable to create/update fields: CreatedById. Please check the security settings of this field and verify that it is read/write for your profile.:
I'm handling the portion that logs into Salesforce with an Admin user, but trying provide functionality to allow other users that can successfully login to the selfservice user portion to add comments. So the CreatedById that I'm sending is that of the self service user, not the person that I've used for the login/session stuff.
Will I need to try to login and set the session for a self-service user or something?
Please advise,
Joe
Unable to create/update fields: CreatedById. Please check the security settings of this field and verify that it is read/write for your profile.:
I'm handling the portion that logs into Salesforce with an Admin user, but trying provide functionality to allow other users that can successfully login to the selfservice user portion to add comments. So the CreatedById that I'm sending is that of the self service user, not the person that I've used for the login/session stuff.
Will I need to try to login and set the session for a self-service user or something?
Please advise,
Joe
There is a feature just released in Winter'06 that lets you write to these fields for certain objects (to aid in migrated data into salesforce) but i'm pretty certain that case comments is not one of those objects.
So it looks like I'll need to create a custom field for Self Service User Ids that come in from self-service users in my client's customer portal, right? I (foolishly) tried to log in with a self service user as well. Figured it was worth a shot....
Here's what I'm trying to do:
Dim strUserName = (AdminUserName)
Dim strPassword = (AdminPassword)
lr = Sforce_Service.login(strUserName, strPassword)
Sforce_Service.Url = lr.serverUrl
Sforce_Service.SessionHeaderValue = New Sforce_External_Support.SessionHeader
Sforce_Service.SessionHeaderValue.sessionId = lr.sessionId
Dim com(1) As Sforce_External_Support.sObject
Dim comment(4) As System.Xml.XmlElement
comment(0) = GetNewXmlElement("ParentId", strCase_Id)
comment(1) = GetNewXmlElement("CommentBody", strComment)
comment(2) = GetNewXmlElement("IsPublished", "True")
comment(3) = GetNewXmlElement("CreatedById", (SelfServiceUserId))
Dim at As New Sforce_External_Support.sObject
at.type = "CaseComment"
at.Any = comment
com(1) = at
Any thoughts?
b