The Celigo platform’s canonical format for mock data

Comments

3 comments

  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    Hi Tom Santiago,

    The "rows data" example isn't valid JSON, the address objects are missing closing braces.

    {
        "page_of_records": [{
            "rows": [{
                    "id": "12345",
                    "name": "Mary Poppins",
                    "type": "customer",
                    "address": {
                        "street": "17 Cherry Tree Lane",
                        "City": "London"
                    }
                },
                {
                    "id": "98765",
                    "name": "Sherlock Holmes",
                    "type": "customer",
                    "address": {
                        "street": "221B Baker Street",
                        "City": "London"
                    }
                }
            ]
        }]
    }

    Also, it may be worth mentioning that Webhooks expect the "Record Data" format.

    Lastly, and I'm not sure this is the right document for this, but what is the difference and/or relationship between Webhook Sample Data and Mock Output - to me they're the same, but I'm probably missing something.

    0
  • Tom Santiago Principal Technical Writer Community moderator
    Engaged
    Top Contributor
    Celigo University Level 4: Legendary

    Hi Steve Klett,

    Thanks for the catch on the errant JSON text (revised). I also added a note about webhook listeners using canonical format for record data. Regarding your final question, with webhook sample data:

    General URL & sample data

    Sample data: Click Click to show to populate the sample data field with the webhook data most recently received by the public URL endpoint. If the public URL endpoint has not yet received any data, you can manually enter sample JSON data in the field provided.

    And here is the currently existing documentation on Mock output data for webhook listeners:

    Add mock data to webhook listeners 

    You can also save mock output data to generic webhook listeners. This works the exact same way as for Mock output for Exports and Lookups, except that it is not possible to fetch preview data to populate the mock data field. Click the Expand Window button to open and view the single pane JSON editor.

    I think a future release will eliminate the redundancy as it currently stands for webhook listeners.

    Tom

     

     

    0
  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    Cool, thanks Tom.

    0

Please sign in to leave a comment.