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

Formula Field Alignment Logic
Hello,
I am looking to create a formula field simlar to 2 we already have in our instance under the Account & Opportunity object for Leads. Basically what the field does in a nutshell is, narrow results in reports and dashboards to the region or geo the user's alignment is set to here is the syntax for the formula fields under Accounts and Objects :
Account Object:
Field 1:
IF (OwnerId = $User.Id, "Y", "N")
Field 2:
IF(OR(Account_Owner_Region__c="",Account_Owner_Geo__c =""),"N",
if(OR
(Is_Mine__c = 'Y',$User.Align__c="Global",
CONTAINS($User.Align__c ,Acct_OwnerName__c),
CONTAINS($User.Align__c ,Account_Owner_Region__c),
CONTAINS($User.Align__c, Account_Owner_Geo__c)
),"Y","N"))
Opportunity Object:
Field 1:
IF (OwnerId = $User.Id, "Y", "N")
Field 2:
IF(OR(Owner_Region__c="",Owner_GEO__c =""),"N",
if(OR
(Is_Mine__c = 'Y',$User.Align__c="Global",
CONTAINS($User.Align__c ,OwnerName__c),
CONTAINS($User.Align__c ,Owner_Region__c),
CONTAINS($User.Align__c, Owner_GEO__c)
),"Y","N"))
What I want to do is use a similar logic for leads, EXCEPT instead of the lead owner use another field which is manually maintained called, "Generalist_Sales_Rep__c" :
What is the syntax I need to put in when I create the new Formula field on the Lead object? Thanks for the help in advance!
Field 1?
Field 2?
I am looking to create a formula field simlar to 2 we already have in our instance under the Account & Opportunity object for Leads. Basically what the field does in a nutshell is, narrow results in reports and dashboards to the region or geo the user's alignment is set to here is the syntax for the formula fields under Accounts and Objects :
Account Object:
Field 1:
IF (OwnerId = $User.Id, "Y", "N")
Field 2:
IF(OR(Account_Owner_Region__c="",Account_Owner_Geo__c =""),"N",
if(OR
(Is_Mine__c = 'Y',$User.Align__c="Global",
CONTAINS($User.Align__c ,Acct_OwnerName__c),
CONTAINS($User.Align__c ,Account_Owner_Region__c),
CONTAINS($User.Align__c, Account_Owner_Geo__c)
),"Y","N"))
Opportunity Object:
Field 1:
IF (OwnerId = $User.Id, "Y", "N")
Field 2:
IF(OR(Owner_Region__c="",Owner_GEO__c =""),"N",
if(OR
(Is_Mine__c = 'Y',$User.Align__c="Global",
CONTAINS($User.Align__c ,OwnerName__c),
CONTAINS($User.Align__c ,Owner_Region__c),
CONTAINS($User.Align__c, Owner_GEO__c)
),"Y","N"))
What I want to do is use a similar logic for leads, EXCEPT instead of the lead owner use another field which is manually maintained called, "Generalist_Sales_Rep__c" :
What is the syntax I need to put in when I create the new Formula field on the Lead object? Thanks for the help in advance!
Field 1?
Field 2?
Hi Zohaib,
Did you find the solution to your question? If not then can you please confirm if the field named Generalist_Sales_Rep__c on the Lead object is a custom Lookup field to the user object?
Kind Regards,
Swarna.
Correct me if I am wrong but from what I see, I think that what you were referring to as Field 1 is basically the field with the API name as Is_Mine__c for the Lead object in your SFDC instance. Now the logic you shared in your previous comment is for the Is_Mine__c field and the syntax is as follows: The Syntax for the Is_Mine__c field can be shortened, updated to ensure that the Align__c field vaules are only compared when they have values in it and will need to be as follows: Now before I jump into the Field 2 logic, I need the details for the following fields on the Opportunity object:
Swarna
Hi Zohaib,
Where did you enter the corrected formula I shared with you in the earlier post? Did you enter it as Field 1 or Field 2? And what are the field labels for Field 1 and Field 2 on the Opportunity and Account objects? This information will help clear out my head because I honestly dont have a complete pciture of your process.
Kind Regards,
Swarna.