• Dimitri Suls
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello.

I am getting the above error in my code.  However, the code used to work, so I am wondering if Salesforce have changed something recently.

My code is in a Visualforce controller extension:

abstract global with sharing class BaseExtension {
	
	protected SObject m_Object;
	
	public BaseExtension (ApexPages.StandardController p_Controller) {
    	
		m_Object = p_Controller.getRecord();
		if (m_Object!=null) {
			recordTypeId = (String)m_Object.get('RecordTypeId');
		}
	}
}
Now, field 'RecordTypeId' does exist in the object in question.

I think the problem is that this controller is defined in a managed package which I have installed in another org and then I try to use the controller on an object that was defined in this other org.

However, I can't see why this should be an issue.

Any thoughts?

Carl
  • May 28, 2014
  • Like
  • 0