I have created a custom object and in the task, i have created a detail page button to automatically create the new custom object but including already some information from the task. my Url looks like:


just to clarify: 00N4E000000W6wU is a text field to check, if the value is correct, which it is 00N4E000000WAUy is the lookup field for Account in the new custom object, which i want to be filled, but this won´t work.

Here is the result URL


Am i missing something here?

Thanks in advance for your help

  • Any specific reason for using URLENCODE?
    – sfdcFanBoy
    May 18, 2016 at 10:17
  • googled a lot before posting here and somewhere i found that, but neither solution worked anyway May 18, 2016 at 10:53

1 Answer 1


It should be Account.Name and Account.Id for the _lkId


Also note, no spaces after or before &

  • thx for that, tried different versions already, changed to cs83.salesforce.com/a0P/…{!Account.Name}&CF00N4E000000WAUy_lkid={!Account.Id} but still not working, the Account.Id in the first field is only there for checking, if it in general gets the id May 18, 2016 at 10:52
  • ok...just read another article, which clarifies to my what you already explained. i should forward both, the name and the id...for me, that means "cs83.salesforce.com/a0P/e?00N4E000000W6wU={!Account.Id}&CF00N4E000000WAUy={!Account.Name}&CF00N4E000000WAUy_lkid={!Account.Id} and this is working as expected, thanks May 18, 2016 at 11:37
  • Yes for a lookup, both name and Id should be passed. Good to know it worked! cheers!
    – sfdcFanBoy
    May 18, 2016 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.