You need to sign in to do that
Don't have an account?
Tsukasa
Issue with rules
I'm not sure what to title this.
I'm creating a windows application in C# and creating tickets.
Here is my error.
Here is a link to the debug log taken when I ran the application.
[Case: 00129405 5007000000aHtmZ] is never created even though I don't see any errors in the log
Any help of insight would be great.
I'm creating a windows application in C# and creating tickets.
Here is my error.
"A workflow or approval field update caused an error when saving this record. Contact your administrator to resolve it.
Original Priority: data value too large: SLA - 2 - Enterprise Level and/or Practice Level Failure (max length=50)"
Original Priority: data value too large: SLA - 2 - Enterprise Level and/or Practice Level Failure (max length=50)"
Now we don't use the default Priority field we use a custom one called Priority__c.
-
Field name: Priority__c
Field Label: Priority
Type is: picklist
Length: 255
This is a custom field.
Can be nulled.
Createable
Filterable
Updateable
Picklist Values
This is set to 255 for length so this can't be the issue.
Our admin looked over all of the rules and couldn't find anything casuing the issue.
Here is what I'm doing in my c# app
Case salesForceCase = new Case();
salesForceCase.AccountId = accountID;
salesForceCase.ContactId = contactID;
salesForceCase.Subject = salesForceCaseData.Subject;
salesForceCase.Type = salesForceCaseData.CaseType;
salesForceCase.Product_Category__c = salesForceCaseData.Product;
salesForceCase.Product_Subcategory__c = salesForceCaseData.SubProduct;
salesForceCase.Priority__c = salesForceCaseData.SLA;
//default from
salesForceCase.Origin = "Support Console";
//default status
salesForceCase.Status = "Case Opened";
salesForceCase.Description = salesForceCaseData.Description;
salesForceCase.Subject = salesForceCaseData.Subject;
//put name and phone in other contact incase it's different then one assoc with email
//this could be if they are using someone elses email which does happen
StringBuilder fullName = new StringBuilder();
fullName.Append(salesForceCaseData.FirstName);
fullName.Append(" ");
fullName.Append(salesForceCaseData.LastName);
salesForceCase.To_Contact_not_in_SF__c = fullName.ToString();
salesForceCase.To_Contact_Phone__c = salesForceCaseData.PhoneNumber;
if (CreateBatch(salesForceCase)) { do stuff }
salesForceCase.AccountId = accountID;
salesForceCase.ContactId = contactID;
salesForceCase.Subject = salesForceCaseData.Subject;
salesForceCase.Type = salesForceCaseData.CaseType;
salesForceCase.Product_Category__c = salesForceCaseData.Product;
salesForceCase.Product_Subcategory__c = salesForceCaseData.SubProduct;
salesForceCase.Priority__c = salesForceCaseData.SLA;
//default from
salesForceCase.Origin = "Support Console";
//default status
salesForceCase.Status = "Case Opened";
salesForceCase.Description = salesForceCaseData.Description;
salesForceCase.Subject = salesForceCaseData.Subject;
//put name and phone in other contact incase it's different then one assoc with email
//this could be if they are using someone elses email which does happen
StringBuilder fullName = new StringBuilder();
fullName.Append(salesForceCaseData.FirstName);
fullName.Append(" ");
fullName.Append(salesForceCaseData.LastName);
salesForceCase.To_Contact_not_in_SF__c = fullName.ToString();
salesForceCase.To_Contact_Phone__c = salesForceCaseData.PhoneNumber;
if (CreateBatch(salesForceCase)) { do stuff }
Here is a link to the debug log taken when I ran the application.
http://pastebin.com/CHWZneM2
[Case: 00129405 5007000000aHtmZ] is never created even though I don't see any errors in the log
Any help of insight would be great.
1.) a workflow rule doing a field update
2.) an approval process doing a field update
3.) a case escalation rule doing a field update
Sounds like maybe on of those rules are pointing to Original Priorty instead of your custom field.