-
Notifications
You must be signed in to change notification settings - Fork 81
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
Produce output file containing response from Slack API #98
Comments
I was confusing the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm using this resource to print messages to a Slack channel, but the messages can be very long, and I'd like to be able to post a summary as a main message, followed by the longer details in a reply thread.
To do that, I would need the
ts
in the response from Slack, and include it as thethread_ts
parameter in the follow-up message.I can think of a few ways to do this:
put
step, with extra parameters to specify the thread contentsput
step to post the first message, then a custom task to post the remainderputs
, and add a parameter to specify thethread_ts
I think that #1 could introduce quite a lot of extra complexity in the resource, so I think #2 or #3 would be the preferred approach. However, in order to do that, the
put
step would need to produce some output that could be used in subsequent steps.At the moment the resource outputs a timestamp which is the output of
date
, but perhaps this timestamp could instead be thets
from the result (if available)? Then the implicitget
step after theput
could be used to write some output files for use in later steps.Happy to try and make a PR with some changes if we agree on an approach 😄
The text was updated successfully, but these errors were encountered: