Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add multipart sections to data stream

smicloud
Tera Guru

I am trying to create a data stream action which should be of type multipart. I cannot find any examples how to do this so reaching out a hand here. 

 

Let's say I have this body below that works when I use it as static text with the appropriate Content-Type defined, how would I go about changing the Request Type from Text to Multipart and how to add this data in the form?

 

------------f8n51w2QYCsvNftihodgfJ
Content-Disposition: form-data; name="file";filename="MyFile.txt"
Content-Type: text/plain

Some text
------------f8n51w2QYCsvNftihodgfJ--

 

smicloud_0-1730357266832.png

 

0 REPLIES 0