cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
KH1
Level: Power Up

Allowing user to edit response to an already submitted form?

I am new to PowerApps and trying to understand if it can support my use case.

 

I need to create a form for users to request access to certain data. I plan to create an approval flow using Sharepoint lists, and Outlook. Oftentimes the requests will be rejected, and sent back to the requestor to amend the request. I do not want the users to have to fill out the form again, I would like them to have access to their original request that they can then modify. Is this possible using PowerApps and Sharepoint lists? 

 

I looked at using Microsoft Forms, but it does not seem to support editing of submitted forms. 

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
R3dKap
Level 10

Re: Allowing user to edit response to an already submitted form?

Hi @KH1,

I don't see any reason why you couldn't do your case using PowerApps and Flow. Just a few things:

  • create a SharePoint list that will hold the various form information
  • create a PowerApp app and insert a Form control connected to that list
  • make sure that the ID of the list item created by the requestor is available at all times throughout your Flow approval workflow
  • then, in the Flow, if the request is rejected just send an email to the requestor with a link to the app (pass the ID of the corresponding SharePoint list item as a parameter through the link)
  • use the Params function in the PowerApp app to retreive the list item ID and set it as the current item being edited in the form so the requestor can change its request
  • and that should do it...

Hope this helps... 🙂

Emmanuel

View solution in original post

5 REPLIES 5
R3dKap
Level 10

Re: Allowing user to edit response to an already submitted form?

Hi @KH1,

I don't see any reason why you couldn't do your case using PowerApps and Flow. Just a few things:

  • create a SharePoint list that will hold the various form information
  • create a PowerApp app and insert a Form control connected to that list
  • make sure that the ID of the list item created by the requestor is available at all times throughout your Flow approval workflow
  • then, in the Flow, if the request is rejected just send an email to the requestor with a link to the app (pass the ID of the corresponding SharePoint list item as a parameter through the link)
  • use the Params function in the PowerApp app to retreive the list item ID and set it as the current item being edited in the form so the requestor can change its request
  • and that should do it...

Hope this helps... 🙂

Emmanuel

View solution in original post

Community Support Team
Community Support Team

Re: Allowing user to edit response to an already submitted form?

Hi @KH1,

Could you please share a bit more about your scenario?

Do you want to fire/trigger a approval flow sending via Microsoft Flow when you click the "Submit" button within your app?

I agree with @R3dKap's thought almost. I assume that the Edit form is connected to your SP list, when you click the "Submit" button within your app, pass the generated List Item ID from your app to your flow.

If the approver reject the request, you could consider include the URL link of your app within the email body, along with the List Item ID as a parameter value within the URL link (https://web.powerapps.com/apps/76897698-xxxx-b2de-xxxx-xxxx74f114f2?ItemID=5).

Within your app, you could use the Param function to receive the parameter value (Param("ItemID")). Then navigate to the Edit screen, find the corresponding item record based on the received parameter value and then display it within the Edit form.

More details about firing/triggering a approval flow when you click the "Submit" button within your app, please check my response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Publishing-form-on-SharePoint-list-with-appro...

More details about setting a parameter value within the URL link to your app, please check my response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Email-Notifications/m-p/183482#M60412

More details about displaying the record within the Edit form based on the parameter value in the URL link, please check the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/how-to-Link-directly-to-the-item-on-the-Detai...

On your side, within your flow, you should include the following URL link within the reject email body:

 

https://web.powerapps.com/apps/76897698-xxxx-b2de-xxxx-xxxx74f114f2?ItemID=5   /* <-Please replace 5 with parameter value passed from your app to your flow */

Within your app, set the OnStart property of the first screen of your app to following:

 

 

Set(CurrentItemID, Param("ItemID"));
If(
!IsBlank(CurrentItemID),
Navigate(EditScreen, ScreenTransition.Cover) /* <- EditScreen represents the Edit Screen in your app*/
)

Set the Item property of the Edit form (within the Edit screen) to following:

If(
!IsBlank(CurrentItemID),
LookUp('YourSPList', ID = CurrentItemID)
)

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ahhollan
Level: Powered On

Re: Allowing user to edit response to an already submitted form?

I know this is an old thread. I've tried the solution provided.  However, my url returns the correct ID #, but the app doesn't navigate to the edit screen correctly.  It shows a blank screen.  Below is the OnStart property I set for the app.

 

Set(currentid, Param("ItemID"));If(!IsBlank(currentid),Navigate(EditScreen,ScreenTransition.Cover))

 

Any help would be appreciated.

R3dKap
Level 10

Re: Allowing user to edit response to an already submitted form?

Hi @ahhollan,

As @v-xida-msft mentionned, have you done this part?

Image 5.png

And also make sure that your Form.DefaultMode is set to FormMode.Edit.

ahhollan
Level: Powered On

Re: Allowing user to edit response to an already submitted form?

default mode is edit.  Item property set to If(!IsBlank(currentid),LookUp('Project Initiation',ID=currentid))

 

Url returned has the right id, the app just won't navigate to the edit screen for the id.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,647)