How to do paging in Experience Designer

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.

     

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

     

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.

[ { "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": [] } ]

 

Related articles

Â