Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
2.3 kB
2
Indexable
Never
Borrower_List = list();
Investor_List = list();
Property_List = list();
//
Loan_Info = zoho.crm.getRecordById("Deals",Loan_ID);
Variable_Name = Loan_Info.get("Field_API_NAME");
//Get additional Loan fields here
//
Loan_Contact_Name = Loan_Info.get("Contact_Name");
Contact_ID = Loan_Contact_Name.get("id");
Contact_Info = zoho.crm.getRecordById("Contacts",Contact_ID);
Contact_First_Name = Contact_Info.get("First_Name");
//Get additional Contact fields here
//
Borrower_Map = Map();
Borrower_Map.put("FCI_FIELD_API_NAME",Contact_First_Name);
//Map additional Contact fields here
//
Borrower_List.add(Borrower_Map);
//
Vesting_Loans = zoho.crm.getRelatedRecords("Lender_Vestings16","Deals",Loan_ID);
for each  Vesting_Loan in Vesting_Loans
{
	Investment_Amount = Vesting_Loan.get("Investment_Amount");
	Lender_Vesting = Vesting_Loan.get("Lender_Vestings");
	Lender_Vesting_ID = Lender_Vesting.get("id");
	//Get additional Vesting - Loan fields here
	//
	Lender_Vesting_Info = zoho.crm.getRecordById("Lender_Vestings",Lender_Vesting_ID);
	Lender_Vesting_CTD_Vesting_ID = Lender_Vesting_Info.get("CTD_Vesting_ID");
	Lender_Vesting_Email = Lender_Vesting_Info.get("Email");
	//Get additional Lender Vesting fields here
	//
	Investor_Map = Map();
	Investor_Map.put("FCI_FIELD_API_NAME",Investment_Amount);
	//Map additional Investor Fields here
	//
	Investor_List.add(Investor_Map);
}
Loan_Properties = zoho.crm.getRelatedRecords("Properties15","Deals",Loan_ID);
for each  Loan_Property in Loan_Properties
{
	Propery_Name = Loan_Property.get("Properties");
	Property_ID = Propery_Name.get("id");
	Property_Info = zoho.crm.getRecordById("Properties",Property_ID);
	Street = Property_Info.get("Property_Street_Address");
	//Get additional Property Fields here
	//
	Property_Map = Map();
	Property_Map.put("FCI_FIELD_API_NAME",Street);
	//Map additional Property Fields here
	//
	Property_List.add(Property_Map);
}
FCI_Map = Map();
FCI_Map.put("FCI_FIELD_API_NAME",Variable_Name);
//Map additional Loan fields here
//
FCI_Map.put("FCI_FIELD_API_NAME",Investor_List);
FCI_Map.put("FCI_FIELD_API_NAME",Property_List);
//
// Send_To_FCI = invokeurl
// [
// 	url: <expression>
// 	type: POST
// 	parameters: <expression>
// 	headers: <expression>
// ];
Leave a Comment