+ Start a Discussion
Vikas Kumar 135Vikas Kumar 135 

New Custom button issue

Hi All,

I have created a custom button on Avail object which is a related list on Opportunity.
User-added image
Now, when I click on the button. The Opportunity Name is not populating.
User-added image


Can anyone please help if I am missing something in the logic.

User-added image

/a0O/e?CF00N500000032hk3={!Avail_Request__c.Opportunity__c}
&CF00N500000032hk3_lkid={!Avail_Request__c.OpportunityId__c}
&retURL=%2F0061g000002tm0Y

Regards,
Vikas
Best Answer chosen by Vikas Kumar 135
John GerhardJohn Gerhard
Vikas,

The button is pulling information from the object the button is displayed on. So the code in the button is pulling from the opportunity object not the avail request object as it does not yet exist. so your code should be...

/a0O/e?CF00N500000032hk3={!Opportunity.Name}
&CF00N500000032hk3_lkid={!Opportunity.Id}
&retURL=%2F0061g000002tm0Y

All Answers

John GerhardJohn Gerhard
Vikas,

The button is pulling information from the object the button is displayed on. So the code in the button is pulling from the opportunity object not the avail request object as it does not yet exist. so your code should be...

/a0O/e?CF00N500000032hk3={!Opportunity.Name}
&CF00N500000032hk3_lkid={!Opportunity.Id}
&retURL=%2F0061g000002tm0Y
This was selected as the best answer
Vikas Kumar 135Vikas Kumar 135
Thanks John for the help. It is working as expected.