101 featch available variables from previous steps (#8062)
- add outputSchema in workflow step settings - use outputSchemas to compute step available variables https://github.com/user-attachments/assets/6b851d8e-625c-49ff-b29c-074cd86cbfee
This commit is contained in:
@ -48,7 +48,7 @@ export const WorkflowEditActionFormServerlessFunction = (
|
||||
value={props.action.settings.input.serverlessFunctionId}
|
||||
options={availableFunctions}
|
||||
disabled={props.readonly}
|
||||
onChange={(updatedFunction) => {
|
||||
onChange={(serverlessFunctionId) => {
|
||||
if (props.readonly === true) {
|
||||
return;
|
||||
}
|
||||
@ -58,7 +58,10 @@ export const WorkflowEditActionFormServerlessFunction = (
|
||||
settings: {
|
||||
...props.action.settings,
|
||||
input: {
|
||||
serverlessFunctionId: updatedFunction,
|
||||
serverlessFunctionId,
|
||||
serverlessFunctionVersion:
|
||||
serverlessFunctions.find((f) => f.id === serverlessFunctionId)
|
||||
?.latestVersion || 'latest',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@ -134,6 +134,7 @@ export const WorkflowEditTriggerDatabaseEventForm = ({
|
||||
type: 'DATABASE_EVENT',
|
||||
settings: {
|
||||
eventName: `${updatedRecordType}.${OBJECT_EVENT_TRIGGERS[0].value}`,
|
||||
outputSchema: {},
|
||||
},
|
||||
},
|
||||
);
|
||||
@ -165,6 +166,7 @@ export const WorkflowEditTriggerDatabaseEventForm = ({
|
||||
type: 'DATABASE_EVENT',
|
||||
settings: {
|
||||
eventName: `${availableMetadata[0].value}.${updatedEvent}`,
|
||||
outputSchema: {},
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user