cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tdupton
Helper II
Helper II

Refresh the Attachment Control

I have a flow that launches from a formviewer which converts the current Sharepoint list item to PDF and attaches it to the current list item.  That part works fine.  But, is there a way to "refresh" the attachment control?  Even though I successfully build and attach a PDF you can't see it yet in the attachment control until you close and reopen the formviewer.

3 REPLIES 3
v-micsh-msft
Community Support
Community Support

Hi @tdupton,

 

Could you please explain a bit for " formviewer which converts the current Sharepoint list item "?

 

Are you working with the EditForm control, or the custom form in SharePoint list?

Currently there is no ReSet property available for the Attachment control, we need to Reset the Form control in order to have the Attachment control reset to blank.

If here you would like to refresh the Attachment content, then please take a try to refresh the DataSource, after the flow excutes.

Refresh(DataSource)

Which should be able to have the related control updated with the modified value.

Function reference:

Refresh

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Neither.  Formviewer.  A button on the formviewer launches a flow that runs to create and attach a PDF of the current item you are viewing on the formviewer.

 

I've already tried Refresh but that doesn't force the formviewer or attachment control to refresh.  So, in summary, what I want is probably not possible - to refresh the formviewer or attachment control to see that the list item now has an attachment that it didn't have when the formviewer was opened.

 

Make sense?

 

So you are working with the Display Form within PowerApps?

If this is the case, then please consider take check of the Item property of the Display form control, make sure that data is updated when the data changes.

You may consider switch that data into a variable, and once the Flow runs, update the Variable with the changed record.

 

 

If here you are talking about the form Viewer of Infopath, then please consider post in the forum below:

https://social.technet.microsoft.com/Forums/en-US/home?forum=onlineservicessharepoint

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

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

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (65,260)