You need to sign in to do that
Don't have an account?
Alexander Svyatetskyi 6
How to create URL Field
HI. I Have Custom Object Visit with two custom fields:
- Representative – lookup to User object
- Customer – lookup to Contact object
I need to create URL Field new Visit in Standart Contact Object, which tranfer me to new create page Visit with two fill fields: Representative(current User) and Customer(where we click the link). How can I do it?
- Representative – lookup to User object
- Customer – lookup to Contact object
I need to create URL Field new Visit in Standart Contact Object, which tranfer me to new create page Visit with two fill fields: Representative(current User) and Customer(where we click the link). How can I do it?
Can you send me the URL for the new create page Visit and also the Id of the two lookup fields ??
Regards
Medhya Mahajan
The Ids in bold are the ids of the lookup fields and the part in italics needs to be altered to contain 3 didigt Id of your object ( visit) and set the retURL = {!Contact.Id}.
/a20/e?retURL={!Case.Id}&CF00N80000004W77Q={!Account.Name}&CF00N80000004W77Q_lkid={!Account.Id}
&CF00N80000004W77T={!Contact.Name}
&CF00N80000004W77T_lkid = {!Contact.Id}&RecordType=01280000000Hpwf
&CF00N18000000dv5u = {!Case.CaseNumber}
Mark as solved if this helps.
Regards
Medhya Mahajan
Representative(Lookup) Id = 00N58000007Fqli
Customer(Lookup) Id = 00N58000007Fqln
new create page Visit - https://eu6.salesforce.com/a02/e?retURL=%2Fa02%2Fo
Try this.
Let me know if it works.
Regards
Medhya Mahajan
I accidently had put whitespaces, try this and please ensure there are no whitespaces in the URL.
Regards
Medhya Mahajan
Fields of type URL are just the URL, there's no facility to set the link text. If you want that, then you'll want to look at either a formula field that generates the link, or perhaps using a custom link (which has the advantage that you only need to define it once, rather than on each record, but has less flexible layout arangments)
So, Instead of using a URL field :
Create a link or a button : Go to -- > Button or links
And add this :
/a02/e?retURL={!Contact.Id}&00N58000007Fqli={!User.Name}&00N58000007Fqli_lkid={!User.Id} &00N58000007Fqln={!Contact.Name} &00N58000007Fqln_lkid={!Contact.Id}
Or
Use a formula :
Replace URL in the below syntax and keep only the parameters you require.
HYPERLINK(url, friendly_name [,target]) and replace url with the Web address, replace friendly_name with the link text, and, optionally, replace target with the window or frame in which to display the content)
Eg: HYPERLINK(/a02/e?retURL={!Contact.Id}&00N58000007Fqli={!User.Name}&00N58000007Fqli_lkid={!User.Id} &00N58000007Fqln={!Contact.Name} &00N58000007Fqln_lkid={!Contact.Id}, "Click Here")
Mark solved if this resolves the issue.
Regards
Medhya Mahajan