feat: Salesforce - send routing form responses to Salesforce (#17890)
This commit is contained in:
1 parent
be2f0f986e
commit
f2efd6dc28
4 files changed
+87
-27
No files matched your search
@@ -70,6 +70,7 @@ export default function FormInputFields(props: FormInputFieldsProps) {
|
||||
...response,
|
||||
[field.id]: {
|
||||
label: field.label,
|
||||
identifier: field?.identifier,
|
||||
value: getFieldResponseForJsonLogic({ field, value }),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ export const ZResponseInputSchema = z.object({
|
||||
response: z.record(
|
||||
z.object({
|
||||
label: z.string(),
|
||||
identifier: z.string().optional(),
|
||||
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
||||
})
|
||||
),
|
||||
|
||||
@@ -22,6 +22,7 @@ export type FormResponse = Record<
|
||||
{
|
||||
value: number | string | string[];
|
||||
label: string;
|
||||
identifier?: string;
|
||||
}
|
||||
>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user