function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EldonEldon 

auto fill custom fields to quote address while create quote from opportunity

Hi all,

I need to autofill ship to address and bill to address from some custom fields instead of std account address while creating quotes from opportunity.
this is what i was thinking of doing
 
        opportunity opp = [select id,Billing_City__c from opportunity where id = :oppid limit 1];
        return new PageReference('/0Q0/e?retURL=%2F'+oppid+'&oppid='+oppid+'&BilltoCity='+opp.Billing_City__c);

Its not working i need the separate API names of shiptoaddress and billtoaddress for the quote object. Any ideas?