You need to sign in to do that
Don't have an account?
Susmitha Reddy 4
URL hacking in lightning not working for self-lookup relationship
Hi,
I need some help with URL hacking in lightning.
I have self-lookup relation on Product object. I created a New list button on the product to create a child product from related list.
So I am trying to pre-populate the parent product in lookup field and the recordtype. When clicking on the New button from related list it opens a new product window with the correct recordtype but without the name of the product in the lookup field.
URL is something like this
/lightning/o/Product2/new?recordTypeId=............&ParentProduct__c={!Product2.Id}
Thanks in adavnce for help!!
I need some help with URL hacking in lightning.
I have self-lookup relation on Product object. I created a New list button on the product to create a child product from related list.
So I am trying to pre-populate the parent product in lookup field and the recordtype. When clicking on the New button from related list it opens a new product window with the correct recordtype but without the name of the product in the lookup field.
URL is something like this
/lightning/o/Product2/new?recordTypeId=............&ParentProduct__c={!Product2.Id}
Thanks in adavnce for help!!
/lightning/o/Product2/new?recordTypeId=....&defaultFieldValues=ParentProduct__c={!Product2.Id}
All Answers
Are you getting any errors as such?
Thanks.
There is no error. The Parent Product lookup field is not populated but Record Type is populated.
Thanks!!
/lightning/o/Product2/new?recordTypeId=....&defaultFieldValues=ParentProduct__c={!Product2.Id}