Sheetgo always sends data in one direction, from a source to a destination. This enables you to create a workflow with traceable data moving sequentially from A to B to C, and so on. If you modify the data in file B, you may not want those changes reflected in file A.
However, in some instances, you might want to add extra data using different files. To do that, it's possible to create more connections to transfer parts of the destination back to the source, in a "loop".
Note that even with a two-way sync, it is not possible to change the same data (e.g. column) in different spreadsheets.
Before starting a two-way workflow, decide on an order of data precedence.
This means planning which data has priority. Which data can overwrite other information?
Think about where each piece of data is generated. For instance, in a project management workflow, tasks are generated in the manager's spreadsheet, while status and comments are generated by task owners in their own spreadsheets.
Plan your workflow carefully when creating two-way syncs. Every time you update the connection, data will change in both the source and the destination file.
Prepare your database
In a blank or existing spreadsheet, create a database tab.
In the header row, give a name to every column that will be edited and managed in this file. Data from these columns will be transferred in the first connection step.
Create a column containing a unique identifier for each row, like unique numbers, email addresses, or codes. These IDs will be used in the final step to make sure the correct data is synced on both ends.
Create the first connection
Open Sheetgo and click New Workflow and then Create a connection.
Select the database you just organized. This is your source data. Choose the file and the correct tab. Click Continue.
Under Send data to, select your destination file. This is where the data will be synced back to. Click Finish and save.
Now your source database is mirrored in your destination file.
Prepare the second data source
Open the destination file and you'll find a green tab with a padlock symbol. Sheetgo is pulling data from your source file into this tab. In this article, let's call it "Tab A". As this is a connected tab, it should not be edited.
Create a new tab. In this article, let's call it "Tab B"
Transfer the data from Tab A to Tab B using formulas like ARRAY or QUERY. Read more about using data from a connected tab.
Now that you can see your source data in Tab B, add new columns containing the data you want to send back to the source file.
Create a connection in the opposite direction
In Sheetgo open the workflow from My workspace.
From the Workflow view, click Create connection on the floating menu bar (top of the screen).
Create a connection between the same files that you connected in the first step. This time the connection will run in the opposite direction, so the source file is now the destination file, and vice-versa.
When you select the source, remember to select the tab with the new columns as the source tab (in our example, that's Tab B).
Click Finish and Save to create the connection.
Data is now moving in both directions between the two files.
Use formulas to complete the loop
When you add data to Tab B it appears in your first spreadsheet, in a new connected tab. Use formulas to import that information into the correct row in your database tab:
Open the database tab and add as many columns as you created in the destination file.
In each column, use the VLOOKUP formula to look for the row's unique identifier in the connection tab to pull the corresponding value into that sheet.
Now the loop is complete: data from your database tab is sent to the destination tab, and the destination returns new columns back into the database.
Make sure you create the two connections as one workflow using the Sheetgo web app. This will ensure that the two-way connections run sequentially with data updated in both directions.