cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Punch in and out with Flow button for mobile

I am trying to create a flow button that will replace manual time sheets. I want the user to be able to press the button once to add a timestamp to the "punch in" field, then punch the button again to update time in the "punch out" field in the same row. This could be done with a single button or 2, but I cant find any way to get this to work. is there any way to use the mobile button to also Stop a flow? is there a way to do this with one or 2 buttons?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Punch in and out with Flow button for mobile

Hi @shiggitylockles,

 

Do you want to press the button once to add a timestamp to the "punch in" field  and then press the button again to update the time in the "punch out" field within your Flow button flow?

why don't you press the button once add timestamp to the "punch in" field and update the ''punch out" field in the same row?

 

If you want to press the button once to add a timestamp to the "punch in" field  and then press the button again to update the time in the "punch out" field within your Flow button flow, I afraid that there is no way to achieve your needs with a single Flow button in Microsoft Flow currently. You could consider take a try to create two separated flows with a single flow button (2 buttons).

 

I have made a test on my side and please take a try with the following workaround:

Flow button1 flow:2.JPG

The flow works successfully as below:3.JPG

 

 

Flow button 2 flow:4.JPG

Within "Update row" action, type the following formula within Row id field:

item()?['__PowerAppsId__']

Within Punch out field, type the following formula:

utcNow()

Note: The "Filter array" action is used to filter the specific row in your excel table.

 

The flow works successfully as below:5.JPG

 

6.JPG

 

 

According to another question that you mentioned, do you want to cancel a flow run or disable a flow on your side? If you want to cancel a flow run, I think the "Terminate" action could achieve your needs:7.JPG

Status field set to Cancelled.

 

If you want to disable a flow, I think the "Stop flow" action of Flow management connector could achieve your needs:8.JPG

Within Environment field, specify a environment of your Microsoft Flow. Flow field set to the flow that you want to disable.

 

More details about Flow management connector, please check the following article:

https://docs.microsoft.com/en-us/connectors/flowmanagement/

 

 

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.

View solution in original post

2 REPLIES 2
Highlighted

Re: Punch in and out with Flow button for mobile

This might help give you an idea: https://melihubb.com/2017/09/08/track-time-at-client-sites-with-the-click-of-a-button-using-microsof...

 







Did I answer your question? Mark my post as a solution!


Proud to be a Flownaut!






Highlighted
Community Support
Community Support

Re: Punch in and out with Flow button for mobile

Hi @shiggitylockles,

 

Do you want to press the button once to add a timestamp to the "punch in" field  and then press the button again to update the time in the "punch out" field within your Flow button flow?

why don't you press the button once add timestamp to the "punch in" field and update the ''punch out" field in the same row?

 

If you want to press the button once to add a timestamp to the "punch in" field  and then press the button again to update the time in the "punch out" field within your Flow button flow, I afraid that there is no way to achieve your needs with a single Flow button in Microsoft Flow currently. You could consider take a try to create two separated flows with a single flow button (2 buttons).

 

I have made a test on my side and please take a try with the following workaround:

Flow button1 flow:2.JPG

The flow works successfully as below:3.JPG

 

 

Flow button 2 flow:4.JPG

Within "Update row" action, type the following formula within Row id field:

item()?['__PowerAppsId__']

Within Punch out field, type the following formula:

utcNow()

Note: The "Filter array" action is used to filter the specific row in your excel table.

 

The flow works successfully as below:5.JPG

 

6.JPG

 

 

According to another question that you mentioned, do you want to cancel a flow run or disable a flow on your side? If you want to cancel a flow run, I think the "Terminate" action could achieve your needs:7.JPG

Status field set to Cancelled.

 

If you want to disable a flow, I think the "Stop flow" action of Flow management connector could achieve your needs:8.JPG

Within Environment field, specify a environment of your Microsoft Flow. Flow field set to the flow that you want to disable.

 

More details about Flow management connector, please check the following article:

https://docs.microsoft.com/en-us/connectors/flowmanagement/

 

 

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.

View solution in original post

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,750)