Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in Snow-CreateAndUpdateIncident Playbook #5713

Open
VinithaSandi opened this issue Sep 19, 2024 · 1 comment
Open

Issue in Snow-CreateAndUpdateIncident Playbook #5713

VinithaSandi opened this issue Sep 19, 2024 · 1 comment

Comments

@VinithaSandi
Copy link

VinithaSandi commented Sep 19, 2024

Describe the Bug with repro steps

I got this error, when I run the above playbook by creating a new incident

{"code":"ExpressionEvaluationFailed","message":"The execution of template action 'Switch' failed: The result of the evaluation of 'scope' action expression '@triggerBody()?['object']?['properties']?['severity']' is not valid. It is of type 'Null' but is expected to be a value of type 'String, Integer'."}

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

No

Workflow JSON

{
  "type": "ApiConnection",
  "inputs": {
    "host": {
      "connection": {
        "referenceName": "azuresentinel"
      }
    },
    "method": "put",
    "body": {
      "incidentArmId": "@triggerBody()?['object']?['id']",
      "tagsToAdd": {
        "TagsToAdd": [
          {
            "Tag": "SNOW System ID: @{body('Create_Record')?['result']?['sys_id']}"
          }
        ]
      }
    },
    "path": "/Incidents"
  },
  "runAfter": {
    "Create_Record": [
      "Succeeded"
    ]
  }
}

Screenshots or Videos

No response

Browser

chrome

Additional context

please help me as soon as possible

@Eric-B-Wu
Copy link
Contributor

Eric-B-Wu commented Sep 19, 2024

Hi VinithaSandi, would you be able to share the schema of your trigger body?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants