I’m trying to make an API call using the UiPath.Web.Activities.HttpClient activity to send an email. At first, this worked. However I have tried to add an attachment to the email in the API call. I have tried this in multiple ways. According to the activities information page it should be easily added through the Attachments Collection properties. I have tried this:
and how the attachment is expected (Form data, payload…)
Maybe you can let us know more details about the used REST Endpoint / API Docu
We do know some limitations of the HTTP Request Activity. Therefore we also do the Prototyping in Postman and depending on the resuling details we port it afterwards to the HTTP Request Activity and its settings
Thank you Peter for your answer. I now see that the attachment was expected in another way. I have tried this in Postman and it works but in UiPath it leads to a whole other question.
This is the format the API expects for an attachment:
However the content string is a deserialized json string which in my specific situation is quite large (70k characters). It seems that UiPath has a limit for 10k characters. Which means it will not throw an error when I use the http client activity but also does not send the email. (201 status but the response api content is empty)
Is there a way to work around this issue? Thanks in advance.