Hi, when entering a new lead I want to check for duplicates based on the lead's name. Then if a duplicate is found add a link to that record so the user can check if it is a real duplicate or just someone different with the same name.
I have create a calculated field with the following...
CASE
WHEN
(SELECT COUNT(lead_id) FROM ns_tbl_leads WHERE full_name=target.[@field:first_name] + ' ' + target.[@field:last_name] ) > 0
THEN
"<a href='lead.html?lead='>" + Duplicate + "</a>"
END
This works just fine.
The problem is how to insert the lead_id into the href of the anchor to create the correct link. You cannot concatenate a string in the href and nor do I know a way of building variables in the CASE statement within a calculated field.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
BrianI
Hi, when entering a new lead I want to check for duplicates based on the lead's name. Then if a duplicate is found add a link to that record so the user can check if it is a real duplicate or just someone different with the same name.
I have create a calculated field with the following...
CASE
WHEN
(SELECT COUNT(lead_id) FROM ns_tbl_leads WHERE full_name=target.[@field:first_name] + ' ' + target.[@field:last_name] ) > 0
THEN
"<a href='lead.html?lead='>" + Duplicate + "</a>"
END
This works just fine.
The problem is how to insert the lead_id into the href of the anchor to create the correct link. You cannot concatenate a string in the href and nor do I know a way of building variables in the CASE statement within a calculated field.
Any ideas?
Thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.