URL Hacking VisualForce Page

lookup field ID:

prefix: CF

suffix: __LKID

var url_string = ‘/a0I/e?’;

url_string += ‘retURL=%2F’ + contract_id;
url_string += ‘&RecordType=’ + recordtype_id;
url_string += ‘&CF00N300000068v7u=’ + oppt_name;
url_string += ‘&CF00N300000068v7u_lkid=’ + oppt;
url_string += ‘&00NV0000000Lhln=’ + dba_name;
url_string += ‘&CF00N300000067vMi=’ + contract_name;
url_string += ‘&CF00N300000067vMi_lkid=’ + contract_id;
url_string += ‘&00N300000068v7g=’ + state;
url_string += ‘&00N300000068v80=’ + term_kwh;
url_string += ‘&CF00N300000068v7x=’ + product_name;
url_string += ‘&CF00N300000068v7x_lkid=’ + product_id;
url_string += ‘&CF00N300000067vMs=’ + broker_name;
url_string += ‘&CF00N300000067vMs_lkid=’ + broker_id;
url_string += ‘&CF00Na0000009qwUI=’+ agentName;
url_string += ‘&CF00Na0000009qwUI_lkid=’+ agentId;
url_string += ‘&00N300000068v7o=’ + customer_rate;
url_string += ‘&00N300000068v81=’ + total_cost;
url_string += ‘&00N300000068v7j=’ + broker_margin;
url_string += ‘&00N300000068v7v=’ + other_margin;
url_string += ‘&CF00N30000007DAOP=’ + contract_owner_name;
url_string += ‘&CF00N30000007DAOP_lkid=’ + contract_owner;
url_string += ‘&00N300000068v7h=’ + billing_street;
url_string += ‘&00N300000068v7d=’ + billing_city;
url_string += ‘&00N300000068v7f=’ + billing_postal_code;
url_string += ‘&00NQ00000010Feq=’ + prepaidpercentage;

Print Friendly, PDF & Email
This entry was posted in Development, Main. Bookmark the permalink.