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
SFDC Admin & AnalystSFDC Admin & Analyst 

Name field in User object is not accessible in Formula Field

Hi

 

I have a formula which is exceeding 5000 characters when compiling.

 

I used AccountMAnager__r.Firstname+' '+AccountMAnager__r.Lastname in the formula. I see that there is Name standard field on User object. This field is not accessible in Formula field.

 

Is there any way to reduce my formula characters while compiling. Please help.

 

Thanks

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SFDC Admin & AnalystSFDC Admin & Analyst

The name is not accessible directly. We need to conctenate first name and last name.

 

Thanks

All Answers

kreshokresho

Hi,

 

You can add custom formula fields to evaluate parts of your formula, and then evaluate the final result in your target formula field.

 

Regards,
Kresimir
Apex Editor LS - free alternative to Force.com apex editor.
Give kudos (click blue star under my icon) if this was useful

SFDC Admin & AnalystSFDC Admin & Analyst

@kresho

 

Hi

 

I tried doing that but I am still getting the compilation error.

 

Thanks,

Uzma

SFDC Admin & AnalystSFDC Admin & Analyst

The name is not accessible directly. We need to conctenate first name and last name.

 

Thanks

This was selected as the best answer