Attaching custom objects to a profile and then displaying that information via Zendesk app

2 Comments

  • Matt Owens
    Comment actions Permalink

    Hey Jon, 

    Do you already have the object associated to the User object with a relationship? If so you'd just need to use the List Related Object Records endpoint with the User ID. 

      function userKits(client, id) {
    var kits = {
    url: '/api/sunshine/objects/records/zen:user:' + id + '/related/{relationship_type}',
    type:'GET',
    dataType: 'json',

    };

    From there you just parse and display the data in the object record you want to show. 

    If you don't yet have the user associated to an object record, then you'd need to set up your relationship type, and then have a mechanism to associate the two

    Matt

    1
  • Jon Simone
    Comment actions Permalink

    This was very helpful! Thank you Matt Owens!

    0

Please sign in to leave a comment.

Powered by Zendesk