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
ravi1234.ax1565ravi1234.ax1565 

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 

ravi1234.ax1565ravi1234.ax1565

can u pls send me code for this.......

 

   iam  new to the salesforce.....

 

  thaks for giving reply

hari somapllihari somaplli

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;

}