Legacy Dev Forum Posts

 View Only

Sign Up

Zendesk action results to reflect in Architect flow

  • 1.  Zendesk action results to reflect in Architect flow

    Posted 06-05-2025 18:48

    Chester | 2019-08-13 02:25:12 UTC | #1

    Hi there,

    We have successfully integrate with Zendesk and we are trying to create Zendesk action to query user details (user name).

    If we use the default translation map, we can see Output contract count are correctly map into the schema. { "translationMap": {}, "translationMapDefaults": {}, "successTemplate": "${rawResult}" }

    JASON results: { "results": { "id": 385111583212, "url": "https://radiantcomm.zendesk.com/api/v2/users/385111583212.json", "name": "Phua", "email": "[zhphua@radiantcomm.com.my", "createdat": "2019-07-26T09:13:45Z", "updatedat": "2019-08-09T09:18:34Z", "timezone": "Kuala Lumpur", "ianatimezone": "Asia/KualaLumpur", "localeid": 1, "locale": "en-US", "organizationid": 360554726731, "role": "admin", "verified": true, "tags": [], "alias": "", "active": true, "shared": false, "sharedagent": false, "lastloginat": "2019-08-09T04:59:47Z", "signature": "", "details": "", "notes": "", "moderator": true, "onlyprivatecomments": false, "restrictedagent": false, "suspended": false, "chatonly": false, "defaultgroupid": 360005499891, "reportcsv": false, "userfields": { "acountno": 1222, "balance": "11", "datelastlogin": "2019-08-09T00:00:00+00:00", "ewalletstatus": "activated", "name": "phua zheng hao", "phonenumber": "60166603836", "product": "Ewallet" }, "resulttype": "user" } ], "count": 1 }

    But, if i try to change the translation map to below setting: { "translationMap": {}, "translationMapDefaults": {}, "successTemplate": "$[results]" }

    JASON results:

    1. Apply output transformation: Transform failed to process result using 'successTemplate' template due to error:'Unrecognized token '$': was expecting ('true', 'false' or 'null') at [Source: (String)"$[results]"; line: 1, column: 2]' Template:'$[results]'.

    How do we configure this to map "acountno": 1222, "balance": "11", "datelastlogin": "2019-08-09T00:00:00+00:00", "ewalletstatus": "activated", "name": "phua zheng hao", "phonenumber": "60166603836", "product": "Ewallet"

    so we can use these info in architect?


    Jason_Mathison | 2019-08-13 11:27:02 UTC | #2

    Hi Chester,

    Have you taken a look at the "Get User By User Name" static action that shows up when you install the " Zendesk Data Actions" integration? It gives an example of a working translationMap and successTemplate. Also note that you can copy a static action from the three vertical dots button on the actions column of the actions page if you want to create your own action based on a static action.

    --Jason


    Chester | 2019-08-14 09:12:08 UTC | #3

    Thanks Jason, we found the solution, cheers!


    system | 2019-09-14 09:14:34 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 5764