Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7585817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:15:59+00:00 2026-05-30T19:15:59+00:00

I have came across very interesting problem which I think it’s on Salesforce’s end

  • 0

I have came across very interesting problem which I think it’s on Salesforce’s end but I would like to hear your thoughts on this.

If any of you used Formula Fields to bring a record type name from a particular record to another record might have seen this.

For an example I have record type called “Record Type X” on opportunity and “Record Type Y” on the account record.

When I use $RecordType.Name in the formula fields (RTNameAcc_c & RTNameOpp_c) on both records, the name of their record type is coming across correctly. However, the problem occurs when I reference the account record type on the opportunity record. If I create new formula field on the opportunity called AccountRTName__c and put the following formula Account.RTNameAcc__c instead of the related Account record type name (Record Type Y), I’m getting the opportunity record type name (Record Type X) instead.

I am aware that the formula in AccountRTName__c becomes Account.$RecordType.Name which is fine and should get the Account record type.

So my question is: Is it correct that when you use $RecordType in any context and formula field, the record type is referencing to parent object of the field? And if so, does anyone have a different solution to this problem (without using custom settings)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:16:00+00:00Added an answer on May 30, 2026 at 7:16 pm

    Correct, the $ context variables are resolved in a non-intuitive way in this use case. It’s been a long time since I’ve dealt with this issue, but the solution I last saw was either a workflow field update on the source record or a trigger. Try the field update path, if that doesn’t work, you’ll probably need a trigger. I don’t think this issue has a purely formula-based solution, but as I said it’s been a while since I’ve dealt with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across a very interesting book. I have done some 2d games but
I have came across a very interesting problem. I have a UILabel and a
Today I came across a very nasty problem, I need to make the front-end
I've came across a dilemma which I think is worth discussing here. I have
I came across this very interesting question? I have 300 million SSN numbers (9
I came across this code on reddit . I would have thought that type
I just came across the concept of expression trees which I have heard multiple
I've came across on this problem, I have a sever running apache and php.
I think i came across a bug of @ViewScoped with a4j:commandButton . I have
In college last year I came across something I found very interesting with regard

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.