Skip to main content

Notifications

Process Mining
Suggested answer

Business Rule

Posted on by 4
I want to create a Business Rule that for the duration between Creation Activity and Payment Activity of a process
If the time duration is lesser than 1 day it should be Error
And Greater than 1 day is considered OK
 
How can we define this Business Rule in Power Automate Process Mining?
Categories:
  • Suggested answer
    Russ_PowerLS Profile Picture
    Russ_PowerLS 8 on at
    Business Rule
    So If [time duration] between two activities (Creation Activity and Payment Activity) < 1 then error ('Time duration between Creation and Payment is less than 1 day.')
     
    So Create a new rule
    1) Go to Process Context - Business Rules  - then click create business rule
     
    Select Add Filter - You will select Metric - you are going to make one.
     
     
    2) Set up the logic by defining the condition
       - that would be duration = DateDiff[Creation Activity, Payment Activity], 'day'
     
     
    Here your just going to specify to 23 hours and 59 min and 59 sec 
     
     
    I
    It will ask you the error condition 
      IF duration < 24 THEN ERROR('Time duration between Creation and Payment is less than 1 day.')
     
    The acceptable condition would be 
    ELSE IF duration >= 24 THEN OK('Duration is acceptable.')
     
    This is my first time responding and I apologize for the formatting but I hope this works for you - based on where you have this you can adjust your scope
     
    when done hit save and apply 
     
    Let me know how it goes
     
    PowerLeanSigma.com (Russ)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Tuesday Tip #2 Global Search…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 142,008

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,531

Leaderboard