You need to sign in to do that
Don't have an account?
SKumar SFDC
Pass/Access one class return values into another class
Dear Folks,
Here I have 2 classes created - Input_Class & Leads.
Input_Class - Returns lead values, where as Leads - Inserts records.
Issue:
The Issue is How should I get Input_Class return values into Lead class? here is the code which I try to write..
Input_Class======================>>>>>>>>>>>>>>>>
public static with sharing class Input_Class {
public static list<lead> lead_input(){
list<lead> ld = new list<lead>();
ld.add(new lead(LastName='Kannamma',Company='Kanni tech',Status='Open - Not Connected'));
return ld;
}
}
Leads Class =================================>>>>>>>>>
public static with sharing class Leads {
public static void Lead_create(){
Input_Class.lead_input(); // How could I get above inputclass ld values here?????????????????
update ld;
}
}
Here I have 2 classes created - Input_Class & Leads.
Input_Class - Returns lead values, where as Leads - Inserts records.
Issue:
The Issue is How should I get Input_Class return values into Lead class? here is the code which I try to write..
Input_Class======================>>>>>>>>>>>>>>>>
public static with sharing class Input_Class {
public static list<lead> lead_input(){
list<lead> ld = new list<lead>();
ld.add(new lead(LastName='Kannamma',Company='Kanni tech',Status='Open - Not Connected'));
return ld;
}
}
Leads Class =================================>>>>>>>>>
public static with sharing class Leads {
public static void Lead_create(){
Input_Class.lead_input(); // How could I get above inputclass ld values here?????????????????
update ld;
}
}
This will be your lead class
Thanks,
Himanshu