function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
trigger AccountCategory on Account (before insert,before update) { For (Account acc:Trigger.new){ if(acc.salary__c <=10000) acc.category__c='sample1'; else if (acc.salary__c>10000 && acc.Salary__c<=100000) acc.Category__c='sample2'; else acc.Category__c='sample3'; } }
Cont....
Entire Flow:
Activate the flow and test it.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
You want both flow and Trigger? And how to detect the category a,b and c. Can you specify the ranges.
Thanks,
Can you try the below flow and trigger.
Trigger:
Flow:
Create a record triggered flow on account object as below.
Decision1:
Update element 1:
Decision2:
Update 2:
Continued in next comment
Cont....
Entire Flow:
Activate the flow and test it.
If this solution helps, Please mark it as best answer.
Thanks,
Those are the different values i have created in Category picklist. Replace them as per your requirement.
Thanks,