cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
venky232
Helper V
Helper V

how to create Sharepoint List Form Approval Process from Powerapps

i have created Sharepoint Form in powerapps, when user click on Submit button it should send mail to his manager for Approval of the record.

how to create the flow for this any idea?

 

Note : i have added 2 buttons in Form , when user select from  one of the dropdown as Approval required then the flow button should visible & in other case if user select dropdown as Approval not Required - normal Submit button visible .

Normal Submit button no issue.

i need help on creation flow button for approval.

9 REPLIES 9
v-xiaochen-msft
Community Support
Community Support

Hi @venky232 ,

 

You could create a flow like this:

vxiaochenmsft_0-1658390471285.png

The flow is triggered when the user clicks onthe button.

Hope this will help you.

 

Best Regards,

Wearsky

how to add choice column email address in to Input?

this below code not working any thing i need to add?

datacardvalue1.Selected.Email

v-xiaochen-msft
Community Support
Community Support

Hi @venky232 ,

 

Please provide some screenshots to clarify the issue.

 

Best Regards,

Wearsky

venky232
Helper V
Helper V

Onselect of submit button
SubmitForm(Form2);TGWApproval.Run(DataCardValue6.Selected.Email);NewForm(Form2)

venky232
Helper V
Helper V

email column is choice column

choices([@'tracler1'].Manageremail)

venky232_0-1658726258364.png

 

v-xiaochen-msft
Community Support
Community Support

Hi @venky232 ,

 

From your screenshot...I think you used the person column instead of the choice column.(Please correct me if I am wrong)

Sample:

vxiaochenmsft_0-1658726979285.png

vxiaochenmsft_1-1658726997087.png

vxiaochenmsft_2-1658727009007.png

vxiaochenmsft_3-1658727017336.png

vxiaochenmsft_4-1658727022870.png

vxiaochenmsft_5-1658727043101.png

vxiaochenmsft_6-1658727130552.png

 

Best Regards,

Wearsky

yes i use person or group column in SP

venky232
Helper V
Helper V

flow is working when i use normal testing with datacard of form without saving in SP.

TESTFLOW.Run(DataCardValue6.Selected.Email,DataCardValue1.Text)

but when i use SubmitForm it is showing error as TESTFLOW.Run failed.This method 'Run' has an Invalid value for Parameter 'text'

SubmitForm(Form2);TESTFLOW.Run(DataCardValue6.Selected.Email,DataCardValue1.Text);Reset(Form2)

 

@v-xiaochen-msft 

Please support this issue

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,689)