Forum Discussion

BIXL's avatar
BIXL
Resolver I
8 years ago
Solved

abort query execution within the query

Hey All, Is there a way to cancel/abort query execution within the query ? for example inside the query I want to write something like this :   if param1>param 2 then abort (abort the query and s...
  • v-ljerr-msft's avatar
    8 years ago

    Hi BIXL,

     

    If I understand you correctly, the follow query(M) should work in your scenario. :smileyhappy:

    AbortCheck = if param1>param 2 then error "Abort" else PreviousStep

     

    Regards