Example on best practise with items->getValue() or getfieldvalue()

Answered

Comments

4 comments

  • Andreas Haugstrup Pedersen

    Hi Michael,

    I must urge you to seek out some general PHP tutorials if you do not have much experience with programming. Otherwise you will have trouble every step of the way. At the very least you need to be comfortable working with arrays.

    For this question: It's not convenient to fetch each value individually. You should get the entire item using:

    $item = $api->item->get($item_id);

    Then you can loop over all the fields in $item['fields']

    0
    Comment actions Permalink
  • Michael Winterheller

    Hej Andreas,

    I saw that answer coming :) You are def. right - but with your hint I managed to loop through the fields and everything is working as expected. The next steps I will hand over to the pros.

    Thank you for the fast response

    Michael

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    Hi Michael,

    Happy to hear you got it working. :)

    You should always feel free to ask Podio specific questions here. For example which methods are best to use to reach a specific goal. We just don't have the manpower to teach you PHP :)

    All the best,

    Andreas

    0
    Comment actions Permalink
  • Michael Winterheller

    Andreas,

    no doubt - so far I have had a superb experience with both the product and the team at podio. 

    Thanks again

    Michael

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk