You need to sign in to do that
Don't have an account?
Blake Reeves 9
I am getting this error when building in Process Builder "The formula expression is invalid: Syntax error. Missing '='". What is wrong with my code?
I am trying to update a record field with type formula. Below is the formula that I have written. Any help?
List<[Order_Item__c> Orders = [SELECT Product_Record_Type__c, Total_Price__c FROM [Order_Item__c]];
Integer total = 0;
for ([Order_Item__c] order : Orders){
IF(order.Product_Record_Type__c == "Building Option",
total += order.Total_Price__c;
)
};
return total;
List<[Order_Item__c> Orders = [SELECT Product_Record_Type__c, Total_Price__c FROM [Order_Item__c]];
Integer total = 0;
for ([Order_Item__c] order : Orders){
IF(order.Product_Record_Type__c == "Building Option",
total += order.Total_Price__c;
)
};
return total;
All Answers
The formula expression is invalid: Syntax error. Missing '='".
Can you please share the snapshot of process builder aswell, that helps us understand better.
Cheers!
Sathish
https://www.desynit.com/dev-zone/salesforce-development/replacing-apex-triggers-processes-invocable-actions/