cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dibia
Frequent Visitor

Determine workflow status

Dear all

i need to know how i can determine if a workflow is running or not and in case if off turn it on

i found tun workflow on and turn workflow off but not hte way to say if workflow is running (or the status)

Best regards

Marco

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @dibia,

Annotation 2019-06-28 091634.png

 

Annotation 2019-06-28 091726.png

Since the format of the Date within SharePoint is different from UtcNow(). So you need to convert the format of UtcNow(), just like this:

formatDateTime(utcNow(),'yyyy-MM-ddTHH:mm:ssZ') 

Please have a try, hopes it can help you.

 

Best Regards,

Community Support Team _ Lin Tu

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

7 REPLIES 7
MaryMThompson
Frequent Visitor

Marco,

 

You can test your App, and when the App is running it will give a green check mark when it is working.  If you are testing it and it is just circling, then you likely have a trigger error.  What are you seeing?

yashag2255
Dual Super User II
Dual Super User II

@dibia 

 

You can check the status of the flow:-> when you click on the flow (from all flows)-> you will see the run history here. In the run history you can check the Succesful, Failed, Cancelled and Running flow statuses. 

 

If you can share more details on what it is that you are looiking for, we can better assist you. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

dibia
Frequent Visitor

Hi all and thanks for reply...

I want to explain all better

I have a task that run every hour and it check on sharepoint list a value of field

I need to stop the flow at given time, and start at given time...

my idea is..

I created a sharepoint list with time interval to turn it off, I created another flow taht every hour i check this list and if "now" is between the interval in the list i have to turn off the first flow off

the problem is: if flow is off and I send command "turn it off "nothing of bad, but if flow is runinng and i turn on again i loose the cadenza...

I need to know if first flow is running so in case i do not nothing...

Untitled.jpg

v-lin-msft
Post Prodigy
Post Prodigy

Hi @dibia,

 

You could add Turn off Flow action at the end of first flow as soon as the first flow completes the run.

 

 

Annotation 2019-06-27 174656.pngThen you can create an action in your current flow to get the state of the first flow:

-If State is Started means the first flow is running.

-If not, it means the first flow has completed run.Annotation 2019-06-27 173801.png

Please have a try, hopes it can help you.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

dibia
Frequent Visitor

thanks lin tu

you save my life 😉

more or less seems ok.. i have only a problem on first condition, seems that there's an error..

datetime.png

where date time is two field in a sharepoint list

Seems that greater than worn but less than no.. any idea...?

i have to know if Now is between two datetime ...

doesn't work

thanks again

Marco

Hi @dibia,

Annotation 2019-06-28 091634.png

 

Annotation 2019-06-28 091726.png

Since the format of the Date within SharePoint is different from UtcNow(). So you need to convert the format of UtcNow(), just like this:

formatDateTime(utcNow(),'yyyy-MM-ddTHH:mm:ssZ') 

Please have a try, hopes it can help you.

 

Best Regards,

Community Support Team _ Lin Tu

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

dibia
Frequent Visitor

perfect now is ok!

thank you very much 😉

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA 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

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (37,639)