Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integrations/zendesk/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const User = z.object({
id: z.string(),
firstName: z.string(),
lastName: z.string(),
email: z.string()
email: z.string(),
user_fields: z.record(z.string(), z.string())
});

export type User = z.infer<typeof User>;
Expand Down
3 changes: 2 additions & 1 deletion integrations/zendesk/syncs/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const sync = createSync({
id: zUser.id.toString(),
firstName: firstName || '',
lastName: lastName || '',
email: zUser.email
email: zUser.email,
user_fields: zUser.user_fields
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! You need to add this user_fields property and its shape to the User object in the models

};
});

Expand Down