Consuming a rest API

0
I am currently having major problems, consuming a rest API, it’s a GET request but the JSON is a complex one with arrays and objects… When I create the import mapping and apply it to the microflow,  notghing happens as I presume it doesn’t match, however when I store the http response , I can see data data in it’s unformatted glory, how can I get it to match...I am continuously trying different things. Please help
asked
7 answers
4

Have you tryed to follow the microflow with a debggger step by step and check what happens? 

Did you you’ve checked the academy section for a training path? Maybe it will provide you missing information in your development process. 

You could also additionaly try to provide us more information abut your microflow

answered
0

.rest.

 

 

answered
0

More 

 

answered
0

more 2 

 

 

answered
0

I’ve adjusted your snippet to yield better results:

{
    "tickets": [
        {
            "cc_emails": ["testvj1@freshservice.com", "testmm1@freshservice.com"],
            "fwd_emails": [],
            "reply_cc_emails": ["testvj1@freshservice.com", "testmm1@freshservice.com"],
            "fr_escalated": false,
            "spam": false,
            "email_config_id": null,
            "group_id": null,
            "priority": 3,
            "requester_id": 13000040813,
            "responder_id": null,
            "source": 2,
            "status": 2,
            "subject": "Test VJ1 Issue 1...",
            "to_emails": null,
            "department_id": null,
            "id": 3,
            "type": "Incident",
            "due_by": "2019-03-28T10:26:17Z",
            "fr_due_by": "2019-02-25T10:26:17Z",
            "is_escalated": false,
            "description": "<div>Details about the test issue 1...</div>",
            "description_text": "Details about the test issue 1...",
            "category": null,
            "sub_category": null,
            "item_category": null,
            "custom_fields": {},
            "created_at": "2019-02-19T11:42:18Z",
            "updated_at": "2019-02-20T09:16:16Z",
            "deleted": false
        }
]
}

For each array in the JSON, provide just a single object that has all the fields filled in.

The resulting JSON structure in Mendix looks like this: 

It’s not complete as I don’t have all the options in. You’ll need to put a bit more work into this.

Hope this helps 

answered
0

Thank you I will try this now

answered
0

Hi I have been trying to construct my import mapping using various incantations of my JSON example...my latest attempt has been unsuccessful as wellHi I have been trying to construct my import mapping using various incantations of my JSON example...my latest attempt has been unsuccessful as well

answered