function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deanna Aaron 11Deanna Aaron 11 

How to create Auto Number field with Formula

How would I create Auto Number field with Formula that counts all opportunities with the source field as recurring? (Starting over for each account)

IF an account contains an opportunity with the source field value of “Recurring”, apply generate auto number

IF example account is Costco
Opportunity 1 – Source: One-Time N/A
Opportunity 2 – Source: Recurring (Auto Number: 1)
Opportunity 3 – Source: Recurring (Auto Number: 2)
Opportunity 4 – Source: One-Time N/A

IF the next example account is Walmart
Opportunity 1 – Source: One-Time N/A
Opportunity 1 – Source: One-Time N/A
Opportunity 2 – Source: Recurring (Auto Number: 1) *Notice there are 2 accounts with the number one
Opportunity 4 – Source: One-Time N/A

Thank you for your help! I sincerely appreciate it.
Best Answer chosen by Deanna Aaron 11
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Deanna Aaron, Let us know if it helps.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar

All Answers

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Deanna Aaron, Let us know if it helps.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar
This was selected as the best answer
SALES MAHISALES MAHI
hello sir, 
what are the use of text and auto number in object manager