cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
scbutlerHS
Regular Visitor

Cannot get value for thumbnail from Iconik API in Gallery

Hi - newbie question.

I have managed to get the gallery working with an API from Iconik Media Asset Management System, I can pull some data from the asset list (https://app.iconik.io/docs/apidocs.html?url=/docs/assets/spec/#/default/get_v1_assets_). Here is a sample of the result in test...

"objects": [
{
"analyze_status": "N/A",
"archive_status": "NOT_ARCHIVED",
"category": null,
"created_by_user": "b013d542-987a-11ec-9652-fa98b787ea40",
"custom_keyframe": null,
"custom_poster": null,
"date_created": "2022-06-28T16:58:12.715000",
"date_deleted": null,
"date_modified": "2022-06-28T16:58:13.031000",
"deleted_by_user": null,
"external_id": null,
"keyframes": [
{
"filename": "49f5b2da-0a2b-11ed-9900-26efae8ca3d4.jpg",
"format": "jpeg",
"id": "49f5b2da-0a2b-11ed-9900-26efae8ca3d4",
"is_public": false,
"name": "2321-keyframe.jpg",
"resolution": {
"height": 180,
"width": 101
},
"status": "CLOSED",
"storage_id": "b054b60c-987a-11ec-989c-c2f4cbb6b85c",
"time_code": null,
"type": "KEYFRAME",
"url": "https://storage.googleapis.com/iconik-eu-keyframes/***"
}
],
"media_type": "image",
"object_type": "assets",
"position": 0
},

 

I can get values from the top level of the object but I need to get the url from keyframes which is an array. I have tried this...

First(ThisItem.keyframes) which returns a record. The tried to do First(ThisItem.keyframes).url but I get an error saying unexpected characters. Any ideas?

 

Thanks in advance.

2 REPLIES 2

@scbutlerHS 

 

To test, put in in a Label's Text property

 First(ThisItem.keyframes).url

What's the result? What's shown in the Label?

scbutlerHS
Regular Visitor

Hi - the error is 

Name isn't valid. 'url' isn't recognised.

If I change to First(ThisItem.keyframes) then I get...

Expected Text Value

 

Thanks

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,756)