You need to sign in to do that
Don't have an account?

What is wrong with this OR Statement?
trigger saleInsertedTrigger on i360__Sale__c (after update) {
for (i360__Sale__c S: Trigger.new) {
if(s.EE_Service_Level__c = 'full' || s.EE_Service_Level__c = 'Audit Only'){
}
JCFS.API.createJiraIssue('Project ID', 'Issue Type ID');
}
for (i360__Sale__c S: Trigger.new) {
if(s.EE_Service_Level__c = 'full' || s.EE_Service_Level__c = 'Audit Only'){
}
JCFS.API.createJiraIssue('Project ID', 'Issue Type ID');
}
Try this:
Inside if condition you need to compare conditions.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
Please add '}' bracket at the end.
Thanks
"Error: Compile Error: Cannot save a trigger during a parse and save class call at line -1 column -1"
Did you change the name of the trigger and from the code editor text box?
Thanks
Please refer this link
https://success.salesforce.com/answers?id=9063A000000lKzUQAU
Hope it Helps
Thanks
Sumitha P