I already asked this question in the Podio Partners workspace. As StackOverflow is the official Podio developer forum, it makes sense to post it here, too.
We experienced a strange behavior of the Podio API. In short, when fetching references via API, the returned list of references is not up to date in some cases.
We have two apps, "Products" and "Orders". "Products" contains an app field "order", which references the order the product belongs to.
Our process looks like this:
- Create new order (POST /item/app/{order_app_id})
- Reference order in several products (add order_id to product and save product via PUT /item/{product_id})
- Get all references of order to generate some files (GET /item/{order_id}/reference/)
In some cases (when getting the references immediately after adding the order to the products), the list of references does not contain all products. If we fetch the references again later, all references are returned like expected.
Is there some delay until the references are available on the referenced item? Is there another way of fetching references, which is more deterministic?
Thanks in advance!