There are scenarios when write common logic for Update/Create scnearios except few blocks of code which we specifially write for create scenarios or update scnerios .
In a Plugin code you handle this using a syntax like :
if (context.MessageName.ToUpper() == “CREATE”){
#do something
}
if (context.MessageName.ToUpper() == “UPDATE”) {
#do something
}
similarly in power automate with the new trigger connector from Common data service (current environment )
now to identify the which type of trigger condition met for a run during runtime use :
triggerOutputs()?['body/SdkMessage']
Bình luận