You need to sign in to do that
Don't have an account?
Chirag Mehta
How to automatically populate LookUp Object field's into the Entity fields where this lookup is
There's a LookUp field of Contact in Custom Object
so when i select contact , i want the contact address to be populated into Custom Object 's Address field (one time migration)
I think only way possible is use of Integration Stuff
Suggestion are invited
Also at : - http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=1035
<html>
<head><title>Opportunity: {!Opportunity_Name}</title>
<link href="/dCSS/Theme2/default/common.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet" >
<link href="/dCSS/Theme2/default/custom.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet" >
<link href="/css/assistive.css" type="text/css" media="aural,braille,embossed" rel="stylesheet" >
<link rel="shortcut icon" href="https://www.salesforce.com/favicon.ico">
<script src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js" type="text/javascript"></script>
var accountId="{!Account_ID}";
function initApp()
{
sforceClient.init("{!API_Session_ID}","{!API_Partner_Server_URL_70}"); //login to salesfroce using session Id and Server Url
updateMyField();
}
{
try
{
getAccountMyField();//Query Account Information
}
catch(e){}
}
function getAccountMyField()
{
sforceClient.Query("Select my_field from Account where Id ='" + accountId + "'",insertOpportunityMyField);
}
function insertOpportunityMyField(qrAccount)
{
var strMyField;
if(qrAccount!=null && qrAccount.records.length>0)
{
for(i=0;i<qrAccount.records.length;i++)
{
strMyField = qrAccount.records[i].get("my_field");
}
}
else{
strMyField="";
}
opportunity.set("Id","{!Opportunity_ID}");
opportunity.set("my_field",strMyField);
if (sr.success == true) {
alert("Update was successful...");
} else {
alert("Update failed: " + sr.errors[0].message);
}
</head>
<body onLoad="javascript:initApp()";>
</body>
</html>
Thanx for the above
But I too knew to do the same using Scontrol
I want to do it automatically without getting any click to be done or something like
formula field automatic population
I too know that it cant be done,,,,,,,,,,,,,,but if any it would be helpful
You can have a poller at the back end that will continously check for status change and then copy/update given fields. Note that currently, this can not be hosted on Salesforce.com and you will require an external system that access Salesforce.com via webservices.
Also, the winter release supports functionality to overide the default settings so you should be able to do this using an SControl then.
I think the answer i want is No
We cant do the thing using the current release and staying inside SFDC wo using any external source like
web service or Scontrol
And i winter release we can do the same ...thanx for that