cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Powwownow
Frequent Visitor

Display collection with 1 item on scrollable screen?

I have a flow which returns a collection with a single item with 18 fields. I'm trying to display the collection on a scrollable screen but I can't find a solution. I started with a gallery with show scrollbar, but can't fit all the labels in the gallery and there is only a single item so I doubt gallery is the best way. When I create a scrollable screen I can't set the data card data source to be the collection & same goes for a form. Feels like it should be straightforward. Can anyone point me in the right direction?

thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Powwownow 

 

form control only works with collections

 

Your best bet would be to create your own form (add labels, texts etc)

 

and set values of fields with First(collection).fieldname

 

you can use the update function to update your collection

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

4 REPLIES 4
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Powwownow 

 

If you want to display it in a form control

 

When the collection is returned, get the ID of the list item (assuming data source in SharePoint)

 

then in your form control conmnect to data source

and for the Item property of form control

use Lookup(DataSource, ID = First(collection).ID)

 

Also, if Flow always returns just 1 record, better to just pass back the item ID only, no need for collection in this case

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thanks, the data source isn't SharePoint, it's just a collection that's created from an object returned from Flow.  The collection doesn't appear in the data source combo or search.  I can get it to display in a gallery object but not in a form or data table.  Do you know if I can achieve what I want with a collection or do I need to do it differently?

Hi @Powwownow 

 

form control only works with collections

 

Your best bet would be to create your own form (add labels, texts etc)

 

and set values of fields with First(collection).fieldname

 

you can use the update function to update your collection

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

thanks! This helped me solve it

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (90,617)