You need to sign in to do that
Don't have an account?
ricky88
Populated Person Account's field via Custom Button produced "Error: No matches Found"
I created a custom button (Create New Invoice) with the sample code below:
After clicking the custom button, i reach the desired page where the Accounts field is populated with the Person Account's name from the object where the custom button was originally placed.
However, despite the name being correct, the error shows "Error: No matches Found".
I clicked on the magnifying glass and could select the same name from the lookup dialog box search result, which later on removed the error.
Screenshot with error resolved despite being the same name:
-----
Example, if the Account.name is "Ricky Test", when i click on the custom button, it will populate "Ricky Test" in the desired page but the error shows "Error: No matches Found".
I have to then click on the magnifying glass and select the same name "Ricky Test" from the lookup dialog box search result which then removes the error.
It was the same name. How do i make sure the error doesn't occur in the first place?
Hi,
In layout for Lookup fields there are other hidden fields and they must to be populates.
For this, you have discovery the "Id" field in HTML, and add this parameter in your URL.
for sample:
1 field lookup in layout create other hidden fields:
Correct URL is : https://ap1.salesforce.com/a0X/e?CF00N90000001jEEE={!Account.Name}&CF00N80000004C5MB_lkid={Account.Id}&retURL=/a0X/o
All Answers
Hi,
In layout for Lookup fields there are other hidden fields and they must to be populates.
For this, you have discovery the "Id" field in HTML, and add this parameter in your URL.
for sample:
1 field lookup in layout create other hidden fields:
Correct URL is : https://ap1.salesforce.com/a0X/e?CF00N90000001jEEE={!Account.Name}&CF00N80000004C5MB_lkid={Account.Id}&retURL=/a0X/o
Hi Mario,
Your solution works.
My end link was https://ap1.salesforce.com/a0X/e?CF00N90000001jEEE={!Account.Name}&CF00N90000001jEEE_lkid={Account.Id}&retURL=/a0X/o.
Thank you very much for your insight.
5 thumbs up for you!!!
=))))))