Skip to content

Commit ba8a252

Browse files
committed
fix(rippling): add required constraints on name and data subBlocks for create operations
1 parent 55a8f93 commit ba8a252

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

apps/sim/blocks/blocks/rippling.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,20 @@ export const RipplingBlock: BlockConfig = {
346346
type: 'short-input',
347347
placeholder: 'Enter the resource name',
348348
condition: { field: 'operation', value: [...NAME_OPS] },
349+
required: {
350+
field: 'operation',
351+
value: [
352+
'create_department',
353+
'create_title',
354+
'create_work_location',
355+
'create_business_partner_group',
356+
'create_custom_object',
357+
'create_custom_object_field',
358+
'create_custom_app',
359+
'create_custom_page',
360+
'create_object_category',
361+
],
362+
},
349363
},
350364
{
351365
id: 'parentId',
@@ -375,6 +389,18 @@ export const RipplingBlock: BlockConfig = {
375389
type: 'long-input',
376390
placeholder: '{ "key": "value" }',
377391
condition: { field: 'operation', value: [...DATA_OPS] },
392+
required: {
393+
field: 'operation',
394+
value: [
395+
'create_custom_object_record',
396+
'update_custom_object_record',
397+
'create_custom_setting',
398+
'update_custom_setting',
399+
'create_draft_hires',
400+
'update_supergroup_inclusion_members',
401+
'update_supergroup_exclusion_members',
402+
],
403+
},
378404
},
379405
{
380406
id: 'records',

0 commit comments

Comments
 (0)