Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Back to post

Revisions 2

2 years ago
Any ability to capture @someone and store it into a variable?
Any ability to capture @someone and store it into a variable?
Hello guys, we leverage a bot function that allows us to /ping @"someone in the company" where "someone in the company" is replaced by a firstname lastname discovered automatically by symphony. Is there any ability for us to capture the @username into a variable? I'm thinking it would be `user_details.user_attributes.display_name` from the `UserService` but wondering if anyone has any other ideas on how this would be done? The end goal would be to be able to /send @someone in the company and be able to replay the user's name. We'd also want to do some type of validation to make sure it's an actual user because right now we have a regex that just captures anything @someone and it's not ideal since it can be spoofed. Thanks!
Hello guys, we leverage a bot function that allows us to /ping @"someone in the company" where "someone in the company" is replaced by a firstname lastname discovered automatically by symphony. Is there any ability for us to capture that into a variable? I'm thinking it would be `user_details.user_attributes.display_name` from the `UserService` but wondering if anyone has any other ideas on how this would be done? The end goal would be to be able to /send @someone in the company and be able to replay the user's name. We'd also want to do some type of validation to make sure it's an actual user because right now we have a regex that just captures anything @someone and it's not ideal since it can be spoofed. Thanks!
#question
#question
2 years ago
Original
Any ability to capture @someone and store it into a variable?

Hello guys, we leverage a bot function that allows us to /ping @"someone in the company" where "someone in the company" is replaced by a firstname lastname discovered automatically by symphony. Is there any ability for us to capture that into a variable? I'm thinking it would be `user_details.user_attributes.display_name` from the `UserService` but wondering if anyone has any other ideas on how this would be done? The end goal would be to be able to /send @someone in the company and be able to replay the user's name. We'd also want to do some type of validation to make sure it's an actual user because right now we have a regex that just captures anything @someone and it's not ideal since it can be spoofed. Thanks!
#question