Creating item with reference to another item fails

Answered

Comments

5 comments

  • Christian Probst

    Found the answer here: https://help.podio.com/hc/communities/public/questions/200518488-Setting-app-reference-give-error-The-reference-to-XXXX-in-Customers-is-no-longer-valid-

    To summarize, the item that was being referenced did not belong to the correct app as dictated by the template. Before experiencing this error, i had cloned one of several apps to another workspace for testing and forgot to change what apps they were referencing.

    1
    Comment actions Permalink
  • Christian Probst

    I'll elaborate the steps to reproduce this:

    1: GET all items from app1 (Filter items).
    2: POST new item to app2 with reference to an item in app1 (Add new item).
    3: I get the "Referencen til {Item title} i {App name} er ikke længere gyldig" error.

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    Are you using the app_item_id (a small number) or the item_id (a very large number) when creating your new item? You need to be using the item_id

    0
    Comment actions Permalink
  • Christian Probst

    Just verified that I am using itemid.

    The error code clearly shows that it knows what item i am referencing, but complains that the reference is not valid.

    0
    Comment actions Permalink
  • Christian Probst

    If i use AppItemId, i get another error: "Feltet du refererer til er ugyldigt", so that's not the problem. I can completely document all of the requests that i am making to get this error, but i am not comfortable posting such information in a public forum.

    I asked our dedicated Podio contact for the best channel for getting API support. I was told that this was the place. If i am mistaken, please do tell me. If it is not possible to receive this kind of support, please do tell me. If you just need some time to have a look at the problem, please tell me so. I have colleagues that need a solution to this problem.

    I just need some kind of response from you so i am able to decide on what the best way to move forward is.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk