02-16-2021 06:28 AM
Hi everyone,
i’m having the following challenge: I’m documenting files on Gitlab which are at some point then promoted from the Dev organization to the Prod org. This promotion runs in the Dev organization.
It turns out that the File Writer cannot write between the origanizations (between projects even according to the documentation) even though it does not throw an error. The file writer snap says that it has overwritten the files, but in the Prod instance the files don’t show up.
The file content is retrieved from gitlab in base64 encoding, which is decoded and then the file is created with the File writer. It works properly when staying in one organization.
Does anyone have a suggestion on how to create files in a different organization?
Best regards
Thomas
Solved! Go to Solution.
02-16-2021 09:02 AM
@Spiro_Taleski - you are correct - you cannot create a file in a different org directly.
However, you could create a pipeline with a triggered task that is located in the target org that simply has a formatter (ex: CSV Formatter) and file writer snap. Then call that triggered task from your source org using a REST POST snap, pushing the file contents.
The Project Migration API will also move files between orgs with a REST call.
02-22-2021 01:40 AM
Thanks everyone, i’ll check out the API first and if it doesn’t, i’ll try Korys suggestion.
Best regards
Thomas