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
ravikanth321ravikanth321 

How to get the parent Recordtype Name from Child Object Id (while creating a new child record through child object Inline visualforce page on parent object ) in apex and render field using parent record type Name on child object inline visualforce page.

Shashikant SharmaShashikant Sharma
You could get Parent Record Id in constructor of controller class of Inline VFP by
 
Id currentRecordId = ApexPages.currentPage().getParameters().get('id');

Then Query any field that you want to Pre-Populate on inline VFP field and bind it appropriately with Page Attribute.

Thanks
Shashikant
ravikanth321ravikanth321
Okay thanks shashikant.
Shashikant SharmaShashikant Sharma
Hi Ravi,

Happy that it helped you. I would request you to mark Answer as Solved so others could be benifitted from it.

Thanks
Shashikant