Slack Integration: How can I systematically retrieve the row from the slack notification
Answers
-
I do realise that the primary column ID is in the message, but as far as I can see, I can't use the smartsheet API to directly query a row based on it's primary column - am I wrong?
-
There are two possibilities I can think of, here:
1) One way to achieve this would be to add a column to the sheet with the
rowId
, then populate this row using the API.For example, use
getSheet
then loop over rows toupdateRow
(or maybe just oneupdateSheet
call) with the id in the newrowId
column.Then the workflow can include the
rowId
column. This could be coupled with additional logic/workflows that trigger these api calls again whenever a row is added (workflow) or whenever the slack message does not include the row id.2) As another option, you could use a system Auto-number column as a unique identifier for the row.
If you're using Slack notifications in conjunction with your own application, you could fetch the whole sheet via the API and keep a mapping of auto-number column ids to
rowId
s.I hope that helps!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives