I want to update the icon_url for my Slack message that is being triggered via a Retool workflow.
Issue:
For some reason, the icon being used is an old image. I have updated the icon to use a new URL but for some reason its still using the old URL as is seen by the response JSON object.
The tool tip says I need to set "as_user" to false, but I cannot find that parameter.
Steps I've taken to troubleshoot:
Tried to edit URL
Ran multiple times to test
Viewed response JSON object and seen that icons/image_48 is using the OLD URL.
Additional info: (Cloud or Self-hosted, Screenshots)
Hi @michael_burton, after checking out the slack api docs, you may have to make sure your app has this additional scope: chat:write.customize. The as_user parameter seems to be specific to legacy apps, and setting it to false indicates that it is a bot message.
I just tested this out, and I sent a message with an icon_url set to a url from a random icon from google images. The response I got was similar, as it was turned into a url linking to a slack aws bucket, but for me it was the same image I sent and it was successful. I'm personally having trouble reproducing this specific bug. Here are my scopes if it is helpful:
What I really don't understand is where the image URL that is being used is being set...(this can be seen in screenshot in original message)
When I check the urls in your screenshot, I see that the old image being sent back in the response is an orange triangle logo, which is not a default slack image and must have been set at some point.
Is it possible that your slack organization has a setting turned on to override icon_url? This could be a setting called "Always Show My Bot as the App" in your App Home, or "Always use this icon and name" within your "Incoming Webhooks" configuration.