# Message shortcut showing error slack api

**URL:** <https://community.postman.com/t/message-shortcut-showing-error-slack-api/19390>\
**Category:** Help Hub\
**Created:** [January 21, 2021, 2:28pm UTC](https://community.postman.com/t/message-shortcut-showing-error-slack-api/19390 "2021-01-21T14:28:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefierycoder](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@thefierycoder](https://community.postman.com/u/thefierycoder)\
**Post date:** [January 21, 2021, 2:28pm UTC](https://community.postman.com/t/message-shortcut-showing-error-slack-api/19390/1 "2021-01-21T14:28:34Z")

</div>

Hello Everyone,  
I am using a slack api when I trigger the message shortcut and it sends payload to postman newman webhook.  
but when I trigger it , it shows me an error message in slack “Sorry! that didn’t work try again”, But newman webhook works completely fine and run the collection properly.  
I want to know how to fix this error message?

Code for getting payload from slack  
var previousRequest = JSON.parse(globals.previousRequest),  
webhookRequestData = previousRequest.data;  
const payload = JSON.parse(webhookRequestData.payload);

![Screenshot from 2021-01-21 19-49-58](https://us1.discourse-cdn.com/getpostman/original/3X/1/5/15a4f92d4484169c84fc3d130166062e9bc2311c.png)  
Thank You
