My plan is to export from source (#1 in screenshot), and then import into another instance via API call. Based on screenshot above #1 above are steps to auth > pull locations (node = “FPC.SF.GetLocations”) #2 “Get BPO Token” is to get my target instance’s token ready, then after “Code1” node is completed, i need to push the locations into instance in “Get BPO Token6”
But the challenge now is the nodes looks a bit messy, coz after “Code1” node, i have to create a loop (for 40 items) and call API to import each location, but if i link it with “Get BPO Token6”, the import API will process after “Get BPO Token6” completed, before “FPC.SF.DMO01”. Meaning n8n trying to import before pulling any location (under node “FPC.SF.GetLocation”).
I believe it’s quite a common flow and anyone have working sample for me to reference? thanks
Objective: To copy list of locations (40 items) from source to target instance. Both instances are consume API from 2 platforms, they are completely different products so the API, auth mechanism are slightly different.
From the screenshot #1: initiate a list of variables (e.g. BaseUrl, AppID/Secret, etc) > consume API to get target instance’s Token (so later looping can append in locations) #2 - Get Assertion, Token to get the flow authenticated. In between nodes, there are many “merge” nodes implemented due to “http request” node output doesn’t remain input params (e.g. baseUrl, client id/secret, etc) #3 - I am able to loop every single items (locations) but failed to make an import call to append each location into target instance (the one deactivated)
for the #3 looping, my program doesn’t function well when i use merge node (as below), it only run once but if i disabled it, it run each locations, which is quite puzzled
i wasn’t able to export/share the workflow even sensitive info removed. Coz we are still in evaluation state, building various use cases in n8n to justify how efficient it could streamline the works. I am the pioneer for the comp (currently in free, community ver, running in localhost)
even i try the workaround to copy & paste into notepad, and from there i paste to a blank workflow, hoping i could share the full detail, it prompted error which i am pretty sure it caused by the loop. I experienced it before