Introduction
One common mistake that most of OICS developers make is not taking the backup of their integrations religiously and if they want to take backups clicking on the export of the integrations individually could be quite tedious.
Main Article
In this blog I will be explaining about automating the backup process in OICS.
Below is the order of the steps that are to be followed:
STEP:1
1) Configure a Rest trigger connection as shown below.
Provide the below payload in the request section:
{
"IntegrationName”: ""
}
STEP:2
Configure the new rest connection as mentioned below. (This
basically list downs all the integration details as per the provided name).
Provide the Query parameters as below:
Provide the response payload as below:
{
"hasMore"
: "false",
"items" :
[ {
"id" :
"",
"name" :
"",
"lockedFlag" : "true"
}, {
"id" :
"",
"name" :
"",
"lockedFlag" : ""
} ]}
STEP:3
Adjust the mappings as below between STEP1 and STEP 2
STEP:4
Create a For-each loop and iterate over the results of the
above invoke.
STEP:5
Create one last Rest invoke to archive the integration:
Configure the rest connection as below:
Set the response payload format to Binary.
Map the current ID field to the invoke as below:
Map the file reference as below to your desired SFTP
connection:
That’s it activate and run the integration to see the
specified Integration getting archived at your SFTP.
To Archive all the Integrations of the Instance don’t
provide any value in the parameter and run the integration as it is.
Comments
Post a Comment