Good day, this is my first time on forums because I quite frankly have no idea how to solve this.
So I recently decided to make a fun little project outside my work to gain some new knowledge about UiPath capabilities / activities I’ve never touched before. I thought making a tool for handling images in bulk would be cool. So I made a downloader/uploader tool. Currently its only got a simple bulk downloader and im building a discord uploader where as it happens I ran into something quite annoying.
This is the activity in question. At the start of my workflow I get user input and I thought I could get channelId to use in this activity as a variable but no matter what I tried I get the same error:
Upload Image: Request failed with error:
ProviderMessage : message - Invalid Form Body, code - 50035, errors - {channel_id={_errors=[{code=NUMBER_TYPE_COERCE, message=Value "in_channelId" is not snowflake.}]}}
ProviderErrorCode : 400
RequestId : 67045009e4b0553d0498b5ac
Message : Bad Request
Status code: BadRequest. Error code: DAP-RT-1101.
I looked into this a bit and apparently discord channel Ids are supposed to be in something called a snowflake, as the error suggests. However I don’t know if its even possible for me to convert the string input I get from the uiform into a snowflake. Please tell me if its possible and if not maybe someone has another idea for discord image uploads that would be user friendly allowing for customizible channels / servers.
By the way I already tried using channelId as a string (default input), int32, int64, uint64. Oh and in case I wasn’t clear, using the channel Id like it is in the screenshot works for some reason but only allows for that one channel to be specified.
Thanks in advance!
