Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

\uD83D\uDCD8 Instructions

Info

Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.

...

Orbita’s Experience Designer enables you to do paging of documents to take a backup. This document is a step-by-step guide to help you in achieving this.

Consider an example where you want to take a backup of all the users available in the environment.

  1. Import the attached flow to your Experience Designer.

    Image Added

  2. You can set the document limit per page in the user manager node.

    Image Added

The code will iterate through the users in all the pages and store the user details in an array. You can access that array at msg.listData as an output from pin 2 of the Iterate function node.

You can store this array in the S3 bucket using the Storage node.

The sample flow is given below. Import the below code into your Experience Designer.

...

Code Block
[
    {
        "id": "86eb59b2.54d458",
        "type": "orbita-s3",
        "z": "e52dc386.9f9db",
        "name": "",
        "action": "Create",
        "localFolder": "",
        "projectId": "",
        "x": 400,
        "y": 320,
        "wires": [
            [
                "de4b10ba.4e268"
            ]
        ]
    },
    {
        "id": "de4b10ba.4e268",
        "type": "debug",
        "z": "e52dc386.9f9db",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "file",
        "x": 600,
        "y": 320,
        "wires": []
    },
    {
        "id": "3e42d947.abcd96",
        "type": "function",
        "z": "e52dc386.9f9db",
        "name": "Input",
        "func": "msg.filename = 'raj.json';\nmsg.payload = \"{\\\"hey\\\":\\\"hello\\\"}\"\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 230,
        "y": 320,
        "wires": [
            [
                "86eb59b2.54d458"
            ]
        ]
    },
    {
        "id": "383b9326.62c68c",
        "type": "inject",
        "z": "e52dc386.9f9db",
        "name": "",
        "topic": "",
        "payload": "{}",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 90,
        "y": 320,
        "wires": [
            [
                "3e42d947.abcd96"
            ]
        ]
    },
    {
        "id": "slots",
        "type": "slots",
        "z": "",
        "slots": []
    }
]

View file
namepaging.json

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@130ff
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel

...

in ( "

...

how-to

...

"

...

, "experience-designer" ) and space = "OCS"
labelskb-how-to-article