• Holtzy
  • NEWBIE
  • 0 Points
  • Member since 2013
  • Salesforce Consultant
  • Galvin Technologies


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies

I created a new custom field that is a replacement of an existing one.  The existing field is referenced in an Apex Class.  When I attempt to update the Apex Class with the new field API name I receive the following error:

 

Error: Compile Error: alias is too long, maximum of 25 characters

 

Has anyone seen this error before?  Any suggestions on how to correct it?

 

Thanks

 

Hello,

 

I am a new developer and working on my first coding project.  Here is my scenario:

 

I have a custom field on the Account object that I want to have populated with the contents of a field that resides on a separate custom object.  This update should happen anytime the custom object field is edited.

 

Here's another way of explaining it:

 

Account (Object 1)                                                                              Producer_Role_Code__c (Object 2)

Producer_Role_Codes__c (Field 1)                                              Role_Code__c (Field 2)

 

Anytime a new value is entered into Field 2, it should populate into Field 1.

 

Object 2 can have more than one Field 2 entry, so Field 1 will need to be able to display each Field 2 entry separated by a comma.

 

Additional info:

Object 2 is a related list on Object 1.

I have tried to make Field 1 a Formula(Text) field that pulls in the data from Field 2 but that did not work.

 

Any help/guidance you can provide would be greatly appreciated.