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
Pratik Raut 14Pratik Raut 14 

How to get Field Id from URL when creating new record from Related list

Hello,

I override the Opportunity New button with the lightning component. Whenever I creating new Opportunity from Account's related list from URL I am getting Account Id as well as Parent Object Api name but not getting lookup field Id. I have only one Record Type on Opportunity Object. When there are multiple RecordType then I am getting lookup field Id but when there is a single record type not getting. Anyone know how to get field Id or any other alternate solution.

 

Thanks and Regards

Pratik Patil Raut