@Amit Anand It’s important to ensure that your Logic App is correctly connected to an Application Insights Resource and that you have a Log Analytics Workspace created in the same resource group. From your message, it seems like you’ve already done this.
You mentioned that you’re trying to get the messageId
as the Split-On Tracking Id by using the expression @triggerOutputs()?['body']?['messageId']
. This seems correct, assuming that messageId
is a property of the body of the trigger output.
However, there are a few things you could check:
- Expression Evaluation: Ensure that the expressions you’re using to set the tracked properties are being evaluated correctly. You can check this by adding an action to your Logic App that outputs the result of the expression to the run history. For example, you could use a Compose action with the same expression you’re using for the tracked property.
- Data Type: Make sure that the data type of the tracked property matches the data type of the value you’re assigning to it. For example, if
messageId
is a string, then the tracked property should also be a string. - Configuration: Check the configuration of your function app. Navigate to your function app in the Azure portal and select “Diagnose and solve problems” to open Azure Functions diagnostics.
Let us know the outcome of the above suggestions by replying to this message so we can assist you further.