I created a custom object named REDTasks with lookup fields to both Contacts and Accounts. On my Contact page, I have created a custom button on the related list to create a NEW REDTask. When I click the button to create a NEW REDTask, I need both the Contact Name and the Account to auto populate in the new REDTask. I have tried everything I can think of but I can only get one or the other (Contact Name or Account) to populate -never both at the same time. What am I doing wrong?
Here's my code that will pull in the Contact Name but not the Account:
/a00/e?CF00Nf100000BqZ57={!RED_Tasks__c.ContactName__c}&CF00Nf100000BqZ57_lkid= {!RED_Tasks__c.ContactNameId__c}&CF00Nf100000BqvWZ={!RED_Tasks__c.Account__c}&retURL={!RED_Tasks__c.ContactNameId__c}
Here's my code that will pull in the Account but not the Contact Name:
/a00/e?CF00Nf100000BqZ57={!RED_Tasks__c.ContactName__c}&CF00Nf100000BqZ57_1kid={!RED_Tasks__c.ContactNameId__c}&CF00Nf100000BqvWZ={!Account.Name}&retURL={!RED_Tasks__c.ContactNameId__c}
Where am I messing up?