XSOAR - Transform Language

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XSOAR - Transform Language

L0 Member

Hello everyone, I would like to ask how to get the user.name value from this context data.
I tried using the syntax ${incident.labels.user.name}, but it didn’t work.

Here's the context structure:

{
  incident: {
    ...
    labels: {
      user.name: "john doe",
      ...
    }
    ...
  }
}

 Any suggestions? 

2 REPLIES 2

L4 Transporter

Hey there,

 

that looks a bit strange, as a general hint, the context data (once you open it) the keys are clickable and will copy the path to clipboard.

So it would be an idea to use that and check the path. 

 

I must confess that as this are Javascript Objects I would expect user_name instead of user.name to be in the labels

Thank you for your response @JStephan . When i clicked the key it showed 

incident.labels.user.name

i was able to solve the issue by adding a new object that retrieves the value from 

user.name

object.

 

Thanks for the hint!

 

  • 241 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!