feat: Salesforce choose how to save attendees & other options (#17009)

* Refactor get SF user and create event

* Add new Salesforce options

* Pass app options to CrmService

* Add record enum

* Add creating new lead and contact under an account

* Handle if the contact already exists but not connected to account

* Create a lead if an account doesn't exist

* Merge fix

* Refactor - add generateCreateRecordBody

* Type fix

* Clean up

* Add getAppOptions to other CRM services

* Type fixes

* Fix typo

* feat: Salesforce round robin skip - choose which entity to search on (#17038)

* Add option to search which entity for the owner

* Add logic to search entity for skipping RR assignment

* Type fixes

* Disable license

* Skip license check in component

* Revert license changes

---------

Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
Joe Au-Yeung
2024-10-12 10:02:27 +00:00
committed by GitHub
co-authored by Udit Takkar
parent 47b9e8a8ac
commit b1d9e2b84c
15 changed files with 406 additions and 96 deletions
@@ -155,7 +155,7 @@ export default class BiginCrmService implements CRM {
/***
* Finds existing Zoho Bigin Contact record based on email address. Returns a list of contacts objects that matched.
*/
async getContacts(emails: string | string[]) {
async getContacts({ emails }: { emails: string | string[] }) {
const token = await this.auth.getToken();
const emailsArray = Array.isArray(emails) ? emails : [emails];
@@ -288,6 +288,10 @@ export default class BiginCrmService implements CRM {
async listCalendars(_event?: CalendarEvent): Promise<IntegrationCalendar[]> {
return Promise.resolve([]);
}
getAppOptions() {
console.log("No options implemented");
}
}
const toISO8601String = (date: Date) => {