You need to sign in to do that
Don't have an account?

connection between two s-objects(without relationship)
i have 2 s-objects student and financialstatements.
in student sobject a field called amount
in financialstatements sobject a filed called revenue
so my requirement is ::::
when i enter a value in amout field it as to update revenue field.....
how can i achieve this
NOTE:::::::: THERE IS NO RELATIONSHIP BETWEEN 2 SOBJECTS
can u pls send me code for this.......
iam new to the salesforce.....
thaks for giving reply
trigger studenttrg on Student__c (Before insert,Before update){
student__c st=Trigger.new[0];
fs__c f=new fs__c();
f.revenue__c=st.amount__C;
insert f;
}