cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Patch attachment to sharepoint

How can I allow the user to add attachments and submit it to a sharepoint list. This is my current patch statement for the data cards. SubmitForm(Form1);NewForm(Form1);Patch('CPQ Comment', Defaults('CPQ Comment'), {Title: DataCardValue3.Text, Comment: TextInput2.Text, Name_:Label6.Text, Date:Label7.Text}); Navigate(BrowseScreen1,Fade); Reset(TextInput2) 

powerapps890_0-1596648129940.png

I copied and pasted the attachment card from the edit form.

22 REPLIES 22

Hi, could you explain what you mean by set the default attribute to the value of this form? @v-bofeng-msft  

Hi @powerapps890 :

1. Set the defalult attribute of each data card of this form to the value you want. (Reference the value of the control in Form1)

Control the default upload content by setting the default property of datacare
2. Set the defalut attribute of this form to false (hide it)

What I mean is to set the visible property of this newly created form to false to make this form invisible.

Best Regards,

Bof

Hi,

 

Patch(
    List3,
    Defaults(List3),
    {Title: 1},
    Form1.Updates
)


worked perfectly for me.

cheers,

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 (1,844)