Best practice for recreating a version 1.0 native action step with one of a newer version 1.1.
With Betty Blocks constantly updating the product for a better and smoother building experience, there might be cases when you would have to manually update some existing workflows with newer versions of functionality released.
One case concerns updating the older action steps in Actions. If your action flow was built in the previous version of Betty Blocks, this warning will pop up next to some steps.
Although this action might work perfectly, you will see this message suggesting manually replacing an old step with a newer version.
Recreating some step options from scratch may seem tedious, especially if you have a rather complex action flow. But don’t worry—we've got you covered. This article outlines a quick method for updating action steps quickly without breaking workflows or losing valuable connections.
Replacing older action steps
Follow these steps to update an action step to its latest version while preserving the flow of your work.
Step 1: Open your action
Navigate to the action containing the step you wish to update. Identify the action step requiring replacement.
Step 2: Add the new action step
Drag and drop the updated version of the action step into your workflow. Place it in the desired position.
Step 3: Prepare for transition
Select the existing action step you wish to replace. Open the Network tab in your browser’s developer tools.
Save your action to trigger the required network activity. In the Network tab, locate the network request related to saving the action - the first graphql of xhr type.
Right-click on the network request and select Copy > Copy as cURL. Paste the cURL command into a text editor.
Step 4: Replace the identifier
Open the newly added action step (1). Then locate the identifier within its URL, and copy it into the cURL command replacing the existing identifier there (2).
Step 7: Execute the cURL command
Open your terminal. Copy and paste the updated cURL command into the terminal. Press Enter to execute the command.
If successful, the response will look similar to the following:
{
"data": {
"updateActionStep": {
"__typename": "ActionStep",
"actionStepPaths": [],
"id": "fbb55e2794ab4ab38cca4adcabc9e391"
}
}
}
Step 7: Refresh your page
Refresh your browser to update the action step visually in the interface. Verify that all variables, connections, and logic are intact.
By following this best practice, you can avoid the frustration and inefficiencies caused by the “rip and replace” method, ensuring smoother updates and a more productive building experience.