Question: I’m trying to autofill the LeadSource lookup on the SalesLogix insert opportunity screen and I’m using this code:
Sage.Entity.Interfaces.IOpport
lueLeadSource.
This is not returning a
value. I tried using this code on the page load event and the Account
lookup change event without success. Any help would be appreciated.
Answer: The lookup is bound by the Entity, not the ID, which is
causing your problem. You need to set the entity object. You could
remove .Id so that you are left with this: lueLeadSource.
You could also try this:
if(opp.Account != null&& opp.Account.LeadSource != null){
opp.LeadSource = opp.Account.LeadSource;
}



