Skip to content

Commit 3ecfd37

Browse files
authored
fix: [sf] client fixes (#131)
1 parent d565221 commit 3ecfd37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/platforms/salesforce/schemas.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,13 @@ export const salesforceEvent = validators
528528
Id: z.string(),
529529
Type: z.string(),
530530
}),
531+
EventRelations: z.object({
532+
records: z.array(
533+
z.object({
534+
Id: z.string(),
535+
}),
536+
),
537+
}),
531538
})
532539
.partial()
533540
.required(requiredFields);
@@ -536,6 +543,7 @@ export const salesforceEventRelationalSelect = {
536543
Opportunity: 'What.Id',
537544
Contact: 'Who.Id',
538545
Lead: 'Who.Id',
546+
EventRelation: '(SELECT Id, RelationId FROM EventRelations)',
539547
};
540548

541549
export const salesforceEventCreate = validators.object({

0 commit comments

Comments
 (0)