Closed EnriqueVidal closed 8 years ago
I found that I've been looking at the wrong table, I should be looking at ContactGroup
rather than it's join table, not sure if this issue should be close though since we're still unable to load data from tables who's primary key isn't Id
.
Okay cool! Glad you found the solution.
I'll look into the primary key issue.
So I need to get the tags a contact has been assigned, and seems like Infusionsoft call these groups, however I can't get the names of the tags, this is what I'm doing:
Searching for groups will only give me the id not the actual tag name, and given that Infusionsoft generates this upon creation the id itself won't tell my app anything about this contact, so I did some digging and found that Infusion soft has another table
ContactGroupAssign
were they keep the tag information so I tried that using theDataService.load
and this is what happens:Infusionsoft breaks away from convention here, by naming it's primary key to
GroupId
instead and the gem seems to default toId
which is causing an error ofNoFieldFound
, maybe there is a way in this gem to bypass this but so far I couldn't find any, is this a bug or am I overlooking something? I attached the list of column names in theContactGroupAssign
table from infusionsoft docs.http://developers.infusionsoft.com/dbDocs/ContactGroupAssign.html
Thanks in advance