I would like to ask a question, How to add an attachment in an inhouse tool while raising tickets through API call using http request activity ?
I have completed all the steps successfully. however attachment is now pending.
My project scenario-
To read outlook mail as per the given subject lines and if it matches with the input sheet subject lines then it should raise a ticket for the same with mail attachment on an in-house tool.
So, I have reached to the last steps, where I am only left with the mail attachment process.
I have used http request with get method to complete the ticket raising activity.
Tickets are now getting raised however I need your help to get a solution for mail attachment process.
Yes, I am trying It with the post method however I am not getting the correct process to complete this as I have never done before this that’s why facing the issue.
I have checked it with the team they have told me to do with API mail body.
however I have been trying it for a long, couldn’t get the correct solution.
@Anil_G
Actually they have told me to convert the save mail attachments file to Convert.ToBase64String(MailFileByteArr) and pass it from API body like-
Var= fileName~attachementVarName
I have used http request with get method for ticketing and for attachments will have to use a separate http request with post and into that need to paste this converted value in body. but I cannot directly pass it, will have to assign body and convert it to html something like that…
if you are getting it then please give me some suggestions on this.
Sure, Actually It was some internal terms which was defined by the team for the API post (for attachments)
however I would like to explain how I did it-
I have used an expression to get the attachments. i.e. FileName(Variable, which has only file name with extension .eml)+“~”+BaseContentOfMail (Convert.ToBase64String(MailFileByteArr)) and put it in body under options in http request activity