Insites Docs Developers guide Data ManagementSharing Data between Instances

Sharing Data between Instances

Last updated on August 19, 2024.

This document guides you on how to share data between Instances using the and functionality. They are available on the Profile, User, and Record GraphQL result types.

You can use this functionality to keep data that is the same across the globe - data that you don't want to change (or deploy) in multiple places every time it changes - for example, a list of countries, country ISO codes, or time zones.

Prerequisites

To follow the steps in this tutorial, you should be familiar with Database Items and Users.

Steps

Implement the following steps to share data between instances:

  • Step 1: Create a 'child' model
  • Step 2: Create 'child' objects
  • Step 3: Prepare Graph query
  • Step 4: Create a page
  • Step 5: Create an authorization policy and Graph query
  • Step 6: Create a 'parent' model
  • Step 7: Create 'parent' objects
  • Step 8: Execute Graph query

Step 1: Create a 'child' model

First, create a model named with the schema below:

Step 2: Create 'child' objects

To ensure you have some data in the table, create two objects with the data below:

Step 3: Prepare Graph query

Create the query that will retrieve records, including the referenced remote data:

You will not execute the above query for now because you first need to ensure that the Instance at returns the correct data you need.

Step 4: Create a page

Create the page below inside the Instance:

Step 5: Create an authorization policy and Graph query

Create the referenced authorization policy and Graph query.

Authorization policy:

Graph query:

Step 6: Create a 'parent' model

Create the model with the schema below in the instance.

Step 7: Create 'parent' objects

Create the the 'parent' objects below:

Step 8: Execute Graph query

You are now ready to execute the query in the first Instance.

For each object returned under , a list of records retrieved from the remote endpoint () will be listed if their ids () are included in the current object's list of ids. Note that all remote objects will be retrieved in a single remote API call, so ensure the parameter in is sufficiently large to accommodate all items to be retrieved.

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.