feat: Salesforce - pass company booking response to the Lead field (#17860)

* Catch undefined app option properties

* Add `getCompanyNameFromBookingResponse` method

* Pass bookingResponse when Lead is being created

* Pass bookingResponse from CRMManager

* Handle empty company response

* Return the company value
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2024-11-26 19:14:44 +00:00
1 parent 0b66ddc6db
commit f81716fbb2
3 files changed
+67 -19

No files matched your search

+6 -2
View File
@@ -1,4 +1,4 @@
import type { CalendarEvent } from "./Calendar";
import type { CalendarEvent, CalEventResponses } from "./Calendar";
export interface CrmData {
id: string;
@@ -38,7 +38,11 @@ export interface CRM {
includeOwner?: boolean;
forRoundRobinSkip?: boolean;
}) => Promise<Contact[]>;
createContacts: (contactsToCreate: ContactCreateInput[], organizerEmail?: string) => Promise<Contact[]>;
createContacts: (
contactsToCreate: ContactCreateInput[],
organizerEmail?: string,
calEventResponses?: CalEventResponses | null
) => Promise<Contact[]>;
getAppOptions: () => any;
handleAttendeeNoShow?: (
bookingUid: string,