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

HttpPOST Action #42

Open
dimarra opened this issue Sep 2, 2021 · 4 comments
Open

HttpPOST Action #42

dimarra opened this issue Sep 2, 2021 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@dimarra
Copy link

dimarra commented Sep 2, 2021

What is the suggested way to implement the HttpPOST Action such that the activity on MSTeams is sent back to splunk? Can you provide guidance? Thanks

@guilhemmarchand guilhemmarchand self-assigned this Sep 2, 2021
@guilhemmarchand guilhemmarchand added the question Further information is requested label Sep 2, 2021
@guilhemmarchand
Copy link
Owner

@dimarra

Unfortunately I could never test this configuration myself due to lack of an MS teams access post development, this is covered in the MS doc:

https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference

In theory, you should be able to provide the relevant information for Teams to achieve a REST call back on something when the user clicks on the button.

I will be happy to make changes if you find issues or enhancements required on this

@dimarra
Copy link
Author

dimarra commented Sep 2, 2021

thanks for the prompt response.

The link you have provided leads to the Card Playground which provides a sample json to for "@type": "MessageCard",. I know I need to customize this json per my needs. Where do I set this in my search/alert?

@dimarra
Copy link
Author

dimarra commented Sep 2, 2021

I would like to have a drop down list in the message card. However it appears that this add on does not support Action Card of Type MultichoiceInput.

Is there a way to get a field that allows to stick in json for the potentialAction field to have more control in there?

	{
		"@type": "ActionCard",
		"name": "Move",
		"inputs": [
			{
				"@type": "MultichoiceInput",
				"id": "move",
				"title": "Pick a list",
				"choices": [
					{
						"display": "List 1",
						"value": "l1"
					},
					{
						"display": "List 2",
						"value": "l2"
					}
				]
			}
		],
		"actions": [
			{
				"@type": "HttpPOST",
				"name": "OK",
				"target": "http://..."
			}
		]
	},

@guilhemmarchand
Copy link
Owner

@dimarra
I will have a look, I could provide a free text form option where to paste a JSON structure yes, this might gets somehow challenging to include dynamic content resulting from the Splunk search (ex: $result,my_splunk_field$) but this should be possible as I believe I am doing this already in my JIRA Add-on.
Leave this with me, I will drop a message here if I have more questions

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

No branches or pull requests

2 participants