PodioItem Create "Object not found"

Answered

Comments

5 comments

  • Mathieu MARTEL

    Actually, if this helps, I have another app on another workspace that I am able to create items using the same format of php syntax and it works great! I am only not able to create items on this one app on different workspace.

    Thanks

    0
    Comment actions Permalink
  • Stefan Ukena

    Hi Mathieu,

    if you haven't solved your problem yet, you could try to provide more details to help people help you. Like your relevant code snippet, the client library and version you are using etc.

    Best,
    Stefan

    0
    Comment actions Permalink
  • Mathieu MARTEL

    Thanks, but I figured it out.
    It turned out that the client created the app, but forgot to mention that there were 2 fields that are PodioContactItemField.

    So passing only the User Id didn't cut it, I have to specify the Profile Id of that user.
    All works great now!

    0
    Comment actions Permalink
  • Dave Chenault

    I know it's been a while, do you remember how you ended up setitng the profile_id and the user_id? 

    We have a "claimed by" field that is associated to our employees through the regular podio contacts. But it won't let me assign a user, and i figure it must be because i need to specify the profile_id but I hae no idea how to tell it that.

    "claimed-by" =>  array ('user_id' => $responsible, 'profile_id' => $profile_id),

     

    Thanks

    0
    Comment actions Permalink
  • Mathieu MARTEL

    Hi Dave,

    I work with PHP and the way I got the profile ID was by doing this:

    $user = PodioSpaceMember::get([my space id],[my user id]);
    $profileId = $user->profile->profile_id;

     

    Hope this helps!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk