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
Recent searches
No recent searches
Posted Mar 26, 2021
This is a continuing discussion about the article Getting started with custom objects in the developer documentation.
0
19 comments
Levente Nagy
1
Matt Claycomb
Jason,
I am not sure I follow. I know in an SQL database, I would have to use an intermediary table. Take the following example, if I want a many-to-many relationship between the Zendesk type ticket and a custom object named "location", I would have to do the following:
Then any time I want to associate a ticket to a location or an additional location, I would need to do the following:
Can you let me know if I'm on the right track, or completely off base?
Thanks,
Matt
0
Itay Banner
Christopher Kennedy Just did, thanks.
0
Christopher Kennedy
Lookup fields are available as part of the new Custom Objects EAP. Have you signed up for the EAP?
0
Itay Banner
Jacquelyn Brewer I'm having the same issue as Levente Nagy 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:
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 Levente Nagy'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
Jacquelyn Brewer
Levente Nagy 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
Jason Martens
Hi Jason, when you create multiple relationships with different PC source IDs, you are creating *different* relationships for each PC. The same is true for one-to-one: each relationship is a separate relationship. The difference between one-to-one and one-to-many is that the target field in the one-to-many relationship type is an array. Whereas the target field in the one-to-one is a single ID.
You should not be able to create multiple relationships with the *same* PC source ID in either the one-to-one or the one-to-many example.
Does that help?
0
Matthew Nataloni
Hello,
How can I add a drop down to a ticket form and populate it with custom objects that are related to the requester. I created a ticket field and associated the custom objects to the employee, just have been struggling on how to populate the custom objects into the drop down.
Is this possible?
0
Jason Martens
Hello Matt, to represent many-to-many relationships, you need to create multiple relationship types that go in both directions. Let me know if that doesn't work for you for some reason.
I'm not sure about the Insights question yet, someone will follow up about that.
0
Matt Claycomb
Hello,
In this article, it is specified that a many-to-many relationship is possible, however I am not finding how. If I attempt to submit a request to the API to create a relation which I believe would handle that (source and target are arrays), I get returned an error saying "Cannot create a relationship type where both source and target are arrays".
Also, is there a feature request page for having Custom Resources loaded into Insights? That function could greatly benefit our company as well.
Thank you,
0
Sign in to leave a comment.