cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Add Attachments in a colection

Hi everyone,

 

I have a problem, i have a colection that i made, but in my colection doesn't has atachments. I would like to know how can I add the attachemnts that are in my SP list. I'll show you the pics.

 

captura1.PNG

 

ClearCollect(ColecciónNPNF; AddColumns('NPNF prueba'; "Seleccionado"; false))

That code it is in the botton "Collection".

 

Search(
    Filter(
        ColecciónNPNF;
        If(
            Dropdown3.Selected.Value = "-Seleccionar-";
            true;
            Resultado = Dropdown3.Selected.Value
        );
        If(
            Dropdown3_3.Selected.Value = "-Seleccionar-";
            true;
            Estado = Dropdown3_3.Selected.Value
        )
    );
    Searchbox.Text;
    "Title";
    "Responsable";
    "Responsable2"
)

This is the gallery code where i can filter the information from my SP list.

 

I'm going to waiting for your comments.

 

Best Regards.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @Anonymous ,

 

The Attachment can't be saved into Collection. It can only be referenced from the sharepoint list.

In your case, I would recommend you add a sub gallery in the Gallery, and set Items property of Sub Gallery as follows to display the Attachments.

LookUp('SP list',ID=ThisItem.ID).Attachments

Set the OnSelect property of Sub Gallery as follows to open the Attachment.

Launch(ThisItem.AbsoluteUri)

Snipaste_2020-07-16_15-22-31.png

Hope this helps.

Sik

 

View solution in original post

2 REPLIES 2
leyburn19
Memorable Member
Memorable Member

In a galley I put the  paper clip icon with its visbele value to If(ThisItem.HasAttachments,true,false)  I think it is HasAttachements

 

If you want to look at teh extraction I would add a form that appears when that icon is clicked that only shows teh Attachment DataCard and is based on teh Simple Gallery.Seleceted

 

You put this on a new screen or make it look like a popup

v-siky-msft
Community Support
Community Support

Hi @Anonymous ,

 

The Attachment can't be saved into Collection. It can only be referenced from the sharepoint list.

In your case, I would recommend you add a sub gallery in the Gallery, and set Items property of Sub Gallery as follows to display the Attachments.

LookUp('SP list',ID=ThisItem.ID).Attachments

Set the OnSelect property of Sub Gallery as follows to open the Attachment.

Launch(ThisItem.AbsoluteUri)

Snipaste_2020-07-16_15-22-31.png

Hope this helps.

Sik

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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