You need to sign in to do that
Don't have an account?
AMartin
URL passing value to a lookup field not working
Hi All,
In our Contracts object, we have a Master Agreement recordtype and other recordtypes for the associated service schedules. The service schedules link back to the Master by way of a Lookup field. I'm trying to create an s-control (url) that will let my users create a service schedule from the Master record. The s-control will create a new record but it won't pass the Master's contract id to the associated lookup field in the service schedules. Would anybody be able to suggest how to correct the following? Based on my reading of the html source, CF00N60000001IQhp is the lookup field id.
setup/ui/recordtypeselect.jsp?ent=Contract&retURL=%2F{!Contract.Id}&save_new_url=%2F800%2Fe%3FretURL%3D%252F{!Contract.Id}%26accid%3D{!Contract.AccountId}&CF00N60000001IQhp_lkid={!Contract.Id}&CF00N60000001IQhp_lkold={!Contract.ContractNumber}
Thanks.
Aiden
MLee
I beleive you need to pass the name and ID as seperate values
Try something like this
CF00N60000001IQhp={!Contract.Name}&CF00N60000001IQhp_lkid={!Contract.ID}
AMartin
Since I use Contract Numbers and not Contract Name my url should have been
CF00N70000001hoU1={!Contract.ContractNumber}&CF00N70000001hoU1_lkid={!Contract.Id}.
Thanks for the help.
Aiden