Hi I need some urgent help is there any body please tell me how can i create relationship with between Lead And Property by using Formula. You can check my code example in attachment
ifThen($leadnew == true,
record\create('Contact',
'firstName', firstName,
'lastName', lastName,
'phoneNumber', phoneNumber,
'emailAddress', emailAddress,
'selectLeadType', selectLeadType,
'assignedUserId', '1'
);
$createProperty = record\create('RealEstateProperty',
'addressCity', address2City,
'addressCountry', 'USA',
'addressPostalCode', address2PostalCode,
'addressState', address2State,
'addressStreet', address2Street,
'address2City', address2City,
'address2Country', 'USA',
'address2Line2', address2Line2,
'address2PostalCode', address2PostalCode,
'address2State', address2State,
'address2Street', address2Street,
'cityArea', cityArea,
'assignedUserId', '1'
);
);
record\relate('Lead', '62c18054be7534588', 'realEstateProperties', '62bf075d6a8c0197e');
ifThen($leadnew == true,
record\create('Contact',
'firstName', firstName,
'lastName', lastName,
'phoneNumber', phoneNumber,
'emailAddress', emailAddress,
'selectLeadType', selectLeadType,
'assignedUserId', '1'
);
$createProperty = record\create('RealEstateProperty',
'addressCity', address2City,
'addressCountry', 'USA',
'addressPostalCode', address2PostalCode,
'addressState', address2State,
'addressStreet', address2Street,
'address2City', address2City,
'address2Country', 'USA',
'address2Line2', address2Line2,
'address2PostalCode', address2PostalCode,
'address2State', address2State,
'address2Street', address2Street,
'cityArea', cityArea,
'assignedUserId', '1'
);
);
record\relate('Lead', '62c18054be7534588', 'realEstateProperties', '62bf075d6a8c0197e');
Comment