-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Routing form submitted but no booking - Salesforce actions #18387
base: main
Are you sure you want to change the base?
Conversation
@@ -23,6 +23,10 @@ export default function RoutingNavBar({ | |||
target: "_blank", | |||
href: `${appUrl}/reporting/${form?.id}`, | |||
}, | |||
{ | |||
name: "Incomplete Booking", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm open to changing this tab name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of Salesforce specific logic on this page. I would like to abstract this into it's own component but that can be in a follow up as this needs to go out.
The biggest challenge I see is linking up the save button in the SingleForm
component.
import { routingFormIncompleteBookingDataSchema as salesforceRoutingFormIncompleteBookingDataSchema } from "@calcom/app-store/salesforce/zod"; | ||
import { IncompleteBookingActionType } from "@calcom/prisma/enums"; | ||
|
||
const incompleteBookingActionDataSchemas: Record<IncompleteBookingActionType, z.ZodType<any>> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The incomplete booking action contains a data
field. We're using Zod to validate
@@ -1260,4 +1261,60 @@ export default class SalesforceCRMService implements CRM { | |||
const response = await checkIfFreeEmailDomain(attendeeEmail); | |||
return response; | |||
} | |||
|
|||
async incompleteBookingWriteToRecord( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're reusing methods when writing to records.
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (12/31/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (12/31/24)1 reviewer was added to this PR based on Keith Williams's automation. |
What does this PR do?
Adds an "Incomplete booking" tab to the routing form page
Adds config to write to a Salesforce record when the "From filled, booking not created" event is triggered
Fixes #XXXX (GitHub issue number)
Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?