<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007x5XL4CAMOkta Identity EngineWorkflowsAnswered2024-01-11T14:49:44.000Z2022-08-15T07:37:20.000Z2022-12-09T08:15:29.000Z
  • SarahS.89561 (Customer)

    Forgot to add the payload

    {

    "sheets": [

    {

    "properties": {

    "sheetId": 0,

    "title": "Sheet1",

    "index": 0,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    },

    {

    "properties": {

    "sheetId": 317732887,

    "title": "Sheet2",

    "index": 1,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    },

    {

    "properties": {

    "sheetId": 2125125274,

    "title": "Sheet3",

    "index": 2,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    },

    {

    "properties": {

    "sheetId": 144976084,

    "title": "Sheet4",

    "index": 3,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    },

    {

    "properties": {

    "sheetId": 1179906118,

    "title": "Sheet5",

    "index": 4,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    },

    {

    "properties": {

    "sheetId": 1615383701,

    "title": "Sheet6",

    "index": 5,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    },

    {

    "properties": {

    "sheetId": 561243345,

    "title": "Sheet7",

    "index": 6,

    "sheetType": "GRID",

    "gridProperties": {

    "rowCount": 1000,

    "columnCount": 26

    }

    }

    }

    ]

    }

     

    Expand Post
  • TimL.58332 (Workflows)

    Okay, so the payload you have provided as an example is an Object named "Sheets" containing a list of objects.

     

    Each of these objects contain a top level object named properties which then contains multiple key:value pairs and so on.

     

    To access this data you really need to push it into a foreach so you can iterate over each object. Here is an example:

     Flow1:

    imageFlow2:image 

     

    Expand Post
  • SarahS.89561 (Customer)

    That is amazing, thank you so much. Can I ask one more thing, at the start of the flow I'm querying a table which contains spreadsheet ID's that I want to query, I need to know which sheets belong to which spreadsheet if that makes sense, how do I pass the spreadsheet ID with the payload so I can write it to a table for later use

  • TimL.58332 (Workflows)

    Hi Sarah,

     

    Not really understanding the latest ask here. In your previous example it appears you have an ID and Title combined for each object. Those objects are then being processed out individual in a Helper flow (from my example). If you wanted to "Store them for later use" I would suggest a Workflows table. You could take the outputs from the Object - Get Multiple to construct it. This would allow you to query the ID and return the title value in "later flows".

     

    If you mean the "Entire example payload" and you currently "Know" the Spreadsheet ID you are talking about could be passed down as an additional option in the helper flow (So in addition to the one I added called Input). On the helper you could create another "input" called SpreadsheetID as a text field and save the flow. Then back on the Parent flow re-select the Helper flow giving you the new input field on the For Each card which can accept a static or dynamic value.

    Expand Post
  • MaxKatz (Okta)

    Hi @SarahS.89561 (Customer)​ - I want to publish a how-to guide based on your questions. Can I reuse your JSON object in a blog post?

This question is closed.
Loading
Extact key pairs form payload with multiple indexes