+ Start a Discussion
DeptonDepton 

Custom button to pre populate custom object selecting record type

Hi all,

 

 

I have a custom button on the opportunites related list. So users can create a new Milestone from there.

 

When users click on NEW the select record type screen show up, which is what i want.

Then i want to prepopulate 3 fields: Account, Opportunity and Owner

 

It's working fine except for the Opportunity custom look up field. id: 0N30000007CKjj

 

I have tried

 

/setup/ui/recordtypeselect.jsp?ent=01I30000001ncx8&=
{!Opportunity.Name}&
CF00N30000007CKjj_lkid={!Opportunity.Id}&

 and

 

/setup/ui/recordtypeselect.jsp?ent=01I30000001ncx8&=
CF00N30000007CKjj={!Opportunity.Name}&
CF00N30000007CKjj_lkid={!Opportunity.Id}&

 

Without success. it works fine for the other 2 fields though (account and owner)

Any ideas?

 

Here is the full code. Thanks

 

/setup/ui/recordtypeselect.jsp?ent=01I30000001ncx8&=
{!Opportunity.Name}&
CF00N30000007CKjj_lkid={!Opportunity.Id}&
CF00N30000007CKiW={!Opportunity.Account_Name__c}&
CF00N30000007CKiW_lkid={!Opportunity.AccountId}&
CF00N30000007CKjk={!$User.FirstName}%20{!$User.LastName}&
CF00N30000007CKjk_lkid={!$User.Id}&
save_new_url=%2Fa2L%2Fe%3FretURL%3D%252Fa2L%252Fo&retURL=/{!Opportunity.Id}

 

APathakAPathak

Hi,

Try this :-

/setup/ui/recordtypeselect.jsp?ent=01I30000001ncx8&=
{!Opportunity.Name}&
CF00N30000007CKjj_lkid={!Opportunity.Id}&
CF00N30000007CKjj={!Opportunity.name}&
CF00N30000007CKiW={!Opportunity.Account_Name__c}&
CF00N30000007CKiW_lkid={!Opportunity.AccountId}&
CF00N30000007CKjk={!$User.FirstName}%20{!$User.LastName}&
CF00N30000007CKjk_lkid={!$User.Id}&
save_new_url=%2Fa2L%2Fe%3FretURL%3D%252Fa2L%252Fo&retURL=/{!Opportunity.Id}