[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: OData Post to Create a Taxon

  • Thread starter llivezey@axcess-financial.com
  • Start date
Status
Not open for further replies.
L

llivezey@axcess-financial.com

Guest
Thanks for your reply. I think I figured it out. I am trying to build a taxonomy (hierarchical), State -> City. And I just realized that the TaxonomyId is the ID for entire hierarchy. So this query pulls ALL states and ALL cities: {{baseurl}}/api/default/hierarchy-taxa?$filter=TaxonomyId eq a0184709-103d-4a52-aaf4-0f724ca8f6da This gets a single state by name (Alabama): {{baseurl}}/api/default/hierarchy-taxa?$filter=Name eq 'Alabama' This gets the cities in Alabama (which I got from the last query): {{baseurl}}/api/default/hierarchy-taxa?$filter=ParentId eq 48901807-2140-46a0-bfb5-5c2e5ffc27ba So once I derived the ID for Ohio in the same way, here is the POST to add Cincinnati: { "Title": "Cincinnati", "Name": "Cincinnati", "UrlName": "Cincinnati", "TaxonomyId": "a0184709-103d-4a52-aaf4-0f724ca8f6da", "ParentId": "34cab190-5dd1-41db-ba71-e4e35fd557e8" } And that worked! So I hope this may help someone else. Thanks "jread"...

Continue reading...
 
Status
Not open for further replies.
Top