Create SQL Server lookup record from Slack command
BotsDatabase
What it does
When someone runs the New Master Data Add Currency command in Slack, this automation inserts a row into the dbo.LookupValues table in SQL Server. The Slack channel receives a confirmation that the record was added.
Who it's for
Data and analytics teams who need to add lookup values to SQL Server from Slack without database access.
Apps used
How teams use this
Add currency codes without database tools
Someone runs the New Master Data Add Currency command from Slack and the lookup table updates in real time. The team avoids opening database management tools for routine master data changes.
Let finance teams maintain lookup values
Invite the bot to a finance channel so accounting staff can add or update currency codes directly from Slack. The same workflow applies and only the channel membership changes.
Add validation before inserting the row
Set a condition to check if the currency code already exists in SQL Server before inserting. Only new codes are added to the dbo.LookupValues table to prevent duplicates.
How it works
- Run the add currency command. Type the New Master Data Add Currency command in a Slack channel with the currency details needed for the lookup table.
- Insert the row in SQL Server. Add a new row to the dbo.LookupValues table in SQL Server with the currency information from the Slack command.
- Confirm the record was added. Reply in the same Slack conversation so the channel knows the lookup value was inserted into SQL Server.