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

JSON Message #5

Open
ghost opened this issue Jun 14, 2016 · 3 comments
Open

JSON Message #5

ghost opened this issue Jun 14, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2016

Hi @devlead

Please can you advise how to use the JSON message formatting with this API.

What changes need to be made to the code below?

Thanks

SELECT Ok,
Channel,
TimeStamp,
Error
FROM dbo.SlackChatPostMessage(
'token',
'channel',
'message',
null,
null
)

Sana

@ghost
Copy link
Author

ghost commented Jun 14, 2016

It does not parse the JSON
image

@jcnunez007
Copy link

You'll have to use another SP, Function or SQL 2016 to finish this off. I've had success with this...SerializedJSON Stored Procedure

Good Luck!

@devlead
Copy link
Member

devlead commented Sep 27, 2016

@sanazhussain @jcnunez007 the WCOM SqlServerSlackAPI assembly actually has it's own json serializer built in, so should be fully possible to add support for this for both SQL Server 2012, 2014 and 2016. Just not been a scenario we've had time to explore our selves.

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