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

Set Attachement by default power app

Hi

could anyone help me?

 

How it is possible to set a default attachment in power app?

 

I tried:

Default:

DataCard.Attachments.Value = pic.png

 

thanks in front for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @JLMVV ,

 

You could use a collection to store your image.

I assume that I have an image in my media.

vxiaochenmsft_0-1634180313892.png

Add a button control and set its onselect property to:

ClearCollect(Col,{Id:"",Value:IMG_20210111_094015,AbsoluteUri:"",DisplayName:"IMG_20210111_094015.png"})

 

Set the attament control's properties like this:

vxiaochenmsft_1-1634180374926.png

 

vxiaochenmsft_2-1634180413076.png

 

Best Regards,

Wearsky

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @JLMVV ,

 

You could use a collection to store your image.

I assume that I have an image in my media.

vxiaochenmsft_0-1634180313892.png

Add a button control and set its onselect property to:

ClearCollect(Col,{Id:"",Value:IMG_20210111_094015,AbsoluteUri:"",DisplayName:"IMG_20210111_094015.png"})

 

Set the attament control's properties like this:

vxiaochenmsft_1-1634180374926.png

 

vxiaochenmsft_2-1634180413076.png

 

Best Regards,

Wearsky

@v-xiaochen-msftThanks a lot for your help!

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.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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 (3,785)