.Net table combining data from two Podio Apps
AnsweredHi,
Is there a way to get the field values for a set of filtered items?
I'm working in C# and I used the .Net Api, but all I managed to do was to get the filtered items and basic info about them(id and Title).
When I try to get the get the field values it returns either null or a variable number of commas ( , ).
If I try to get the field values for an individual item using the following:
var item = comp.ItemService.GetItemBasic(224976952);
// A App reference field with external_id 'related-items'
AppItemField appField = item.Field<AppItemField>("status-relationship");
IEnumerable<Item> relateItems = appField.Items;
it will return and item with id 0 and null values.
I'm guessing I'm doing something wrong but I've tried all the ways I could think of, but no luck.
-
Hi Emanuel,
The code should work fine. I tried the same and it is working good. Here is the screenshot of my working code: http://i.imgur.com/ffmwjVS.png
-
Hi Ajmal,
Thank you for your answer.
Yes indeed the code is working. I think I was doing something wrong when returning it as a JSON object.
Luckily I found you asp.net sample (https://github.com/podio/asp-net-sample) and I managed to get the information I needed.
Thank you again for the answer and for the podio .net API. Really helpful.
Please sign in to leave a comment.
Comments
2 comments