![]() Unfortunately, the "workflow_step_execution" does not have a "trigger_id" that I can use to open my modal form. So, righ now I can add the workflow step to a workflow, and use the workflow to trigger my app with an "workflow_step_execute_event". # Do a basic call to workflows.updateStep "text": "This step requires no configuration.", # Send a basic view with a confirmation message Open_configuration_modal(payload, client)Įlif payload = 'view_submission' and payload.get('workflow_step'):Įlif payload = 'shortcut': # Would be modified to handle the "workflow_step_execute" eventĮlif payload = 'view_submission':ĭef open_configuration_modal(payload, client): # User tries to add/edit the workflow step to a workflow # Invoke the correct method based on the callback id ![]() Payload = json.loads(payload)Ĭlient = WebClient(token=get_secret_value(SLACK_TOKEN_SECRET_NAME)) # Payload is URL encoded parameters, parse it SUPPORT_CHANNEL_ID = os.environ.get('SUPPORT_CHANNEL_ID') SLACK_TOKEN_SECRET_NAME = os.environ.get('SLACK_TOKEN_SECRET_NAME')įRESHSERVICE_TOKEN_SECRET_NAME = os.environ.get('FRESHSERVICE_TOKEN_SECRET_NAME')įRESHSERVICE_DOMAIN = os.environ.get('FRESHSERVICE_DOMAIN') I'm doing all that with and empty configuration screen that receives no inputs. When adding the workflow step to a workflow, the app needs to handle a workflow_step_edit interaction, send a configuration view, and then handle that view submission. So, I'm trying to refactor my app to be triggered by a custom workflow step instead of an app shortcut. According to this page, this is only seems possible for workflow shortcuts, not for app shortcuts. However, it's required that the shortcut be pinned to the top of the shortcuts menu on a specific support channel on slack. The function parses the data sends a POST request to the helpdesk service that creates the ticket Lambda function receives a "view_submission" interaction with the user inputs.The lambda function receives an "shortcut" interaction, and uses the trigger_id to call the views.open method to send the form to the user.The user clicks on the shortcut to open up a form. ![]() I implemented my app using the interactivity and shortcuts feature, API Gateway and Lambda. When the Zap runs or if we test that Step, here’s what it looks like in Slack:īecause we uploaded it, the image that was posted to Slack right now won’t change when the Google Sheet gets further updates, freezing it as a snapshot in time.I made a slack app to submit helpdesk tickets directly from a form on Slack. Of course, you can also send the image of the chart to any app that has a File field, like Dropbox or Google Drive.Īdd your “ Message Text” to give some context to the chart, and paste your Google Docs Published Document link into the “ Attach Image by URL” field: Once a week, it will post a message and upload the current state of the image of the chart to a specific channel in Slack. You can create the same Zap with this Zap Sharing link: Here’s the example Zap that I’ve set up to demonstrate the rest: We’re all set to click “ Publish” now, which gives us the Link:Ĭopy the link URL and keep it handy to use in your Zap. Next, I’ll make sure that the publish type is changed from “ Interactive” to “ Image”: I’ll click on the drop down that defaults to “ Entire Document”, and I’ll choose my chart by name: In Google Sheets, I’ll go to the File menu and select “ Publish to the web”: In this case, we can choose to publish just the chart as an image file. The link is long and complicated, essentially serving as a password so that it is virtually impossible for someone to find your published document unless they have the link. Once published, the “published” version will be updated at least every 5 minutes to reflect changes in the source document.Īnyone with the link can access the published version, but can’t make changes to the original. You can make spreadsheets and documents available as downloadable CSVs, PDFs, Microsoft formats, and more. Google Sheets and Google Docs both have a neat feature called “Publish Document” that let you create a link to a version of your document or a specific part of it. The problem? There’s no “ Get/Lookup Graph” type of Action or other way to pull that in. I recently had a customer write in with a request: Once a week, they wanted to post a chart from a Google Sheet to a Slack Channel to keep everyone in the loop on the recent progress their team had made. ![]() Hi there! Tim here from Zapier Support with another workflow idea for you :) Background
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |