Recent searches


No recent searches

Getting started with custom objects



Posted Mar 26, 2021

This is a continuing discussion about the article Getting started with custom objects in the developer documentation.


0

19

19 comments

1263082103969 Just did, thanks.

0


Hi Itay,
 
Lookup fields are available as part of the new Custom Objects EAP.  Have you signed up for the EAP?

0


1263082168309 I'm having the same issue as 4908112888602 and I feel trapped in a vicous circle. 

My use case: I run a website agency. I have clients (organizations) for whom I manage websites (one or more). Each site is either hosted on my server or externally.

My objective: I want to be able to see, under each organzation, which websites I manage for them and where they're hosted.

What I did:

  1. In the Admin Center, under Objects and rules > Custom objects > Objects I Createad a custom object called "website" with 2 properties: URL and external_hosting (checkbox).
  2. In the Admin Center, under Objects and rules > Custom objects > Relationships I Createad a relationship between website (source) > zen:organization (target).
  3. I even created the reverse relationship: zen:organization (source) > website (target).

What I tried to do then: 
In the Admin Center, under People > Configuration > Organization fields, I tried to create a lookup field to manage the custom object records for the organization. I expected to be able to see my custom object available to select in that same dropbox marked in red in 4908112888602's post.

What are we missing, then?
What's the right way to manage relationships with custom object records in the interface? or is it just an API feature? If there is a way, please can you provide a detailed documentation, as the current articles you linked to are not helpful.

0


4908112888602 I think the issue is that you're trying to use lookup relationship fields with custom objects, but instead you need to be defining relationships between the objects either via the Relationships page in Admin Center or the API (https://developer.zendesk.com/documentation/custom-data/custom-objects/getting-started-with-custom-objects/#modeling-your-data).

0


Hi,

I need to add a "custom lookup relationship" field to my tickets referencing to a custom object. But it seems like I can only add one referencing to tickets, organizations or users. According to this article its possible as stated:
"One approach to building this app would be to add a dropdown list to the ticket form in Help Center that lets users select a PC when they submit a ticket."
But the instructions are unclear. Regardless of how many relationships I define, my custom object refuses to show up under the "related object" dropdown in when defining a custom lookup relationship field.
------------------------------------------------------------------------------------------------------------------------------------
What am I missing here?

1


Hey Prashanth,

The object size is determined by the actual byte size of the object being stored. An easy way to tell how large your object is to use postman and a search query for one object. Then you can see the object size by looking at the response body's size. For an example I've included the size of a response with 12 nested attributes (all strings) and an external id. As you can see, you'd need an absolutely massive custom object to come anywhere near this limit.

Hope this helps!

Eric

0


How is custom object size determined..? it says 32kb in the documentation, how to find out if my custom object has reached this 32kb limit..?

0


366874536108, I don't think that's possible. You could write a custom app to insert text into the body of the editor but that would be the only way I know of to get it in there at this time. Sounds like a good idea though so you may want to put in a feature request.

0


Is there any way to access sunshine custom object data from within a ticket body - either via macro or preferably a placeholder?

0


Hi Matt,

Do you have a question about using our List Related Object Records API? You'll want to use the relationship type in the url to return related records. For example, my test account has a user_has_many_devices relationship type. The url I used to get a user's device objects was the following:

https://z3nt.zendesk.com/api/sunshine/objects/records/zen:user:1274575738/related/user_has_many_devices

Best,
Chris

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post