cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Working with Ultra Input/Output Headers, Content, Parameters, and Status Codes

dwhite
Employee
Employee

For ultra, this is all you need to work with headers, content, and url parameters.

Accessing a URL parameter from an Input request. All url parameters passed on the call in must be accessed in the incoming document and not like a traditional trigger. _paramName does not work.
All URL parameters will come in the โ€œqueryโ€ object of the input document and each distinct parameter will be represented by an array of the values passed in to those parameters. Most cases youโ€™re only sending one value into one parameter so here in the SS Iโ€™m using the first array element 0.

09abc29de66a7b4ea0f6fca0e5ed6393aa39372a.png

Content and headers are easier. Your input document you access all incoming headers from the root, and all content from an object named โ€œcontentโ€. Ignore the fact that Iโ€™m writing everything to content on the right side, thatโ€™s just something Iโ€™m doing in the pipeline. Please also note that ALL input headers will be cast to lowercase, even if they are sent in as uppercase. Your mapping must reflect this else youโ€™ll have problems reading the headers.

67adbf673de667041d70bffa88a7fa4aeadcacc3.png

Writing out responses is almost exactly the inverse. Minus the addition of status, body content back to the caller is inside of content. Headers are in root, you can send back custom headers. Status code is in a field called โ€œstatusโ€

527d30324216ec0c19796ee7d0f8b1d516c853c4.png

0 REPLIES 0