I posted a reply to this old thread here, but felt it warrants it's own post since I am stuck and have to do HTML parsing as a result.
I wanted to use this header, as shown in microsoft's docs, so that I can get the messages as plain text.
As seen here, this is not allowed since ReTool now has a list of headers that we are allowed to use ![:frowning: :frowning:](https://community.retool.com/images/emoji/apple/frowning.png?v=12)
Hi @khill-fbmc,
What if you try setting the header like this?
![image](https://community.retool.com/uploads/default/original/3X/e/1/e1edda103158648e1f8d267b40b2b127a0ccbe81.png)
1 Like
Wow... Thank you!
So was I misinterpreting their docs or are their docs unclear that is how you should do it?
Definitely confusing - it clicked for me when I read further down the page, at example 3 in the JavaScript version of the code:
The fact the header is "prefer" and everything else is the value is definitely unclear. Glad this worked though!
1 Like
ya that could def be worded better... putting the header name for the response in the description for the request headers is just annoying ![:sweat_smile: :sweat_smile:](https://community.retool.com/images/emoji/apple/sweat_smile.png?v=12)
for future readers still confused, according to the table the request contains a header named Prefer
of type string
with a value of text
or html
. when the request contains this header the response will have a header named Preference-Applied
of unknown type and unknown value (this just means if the header contains this key then the server accepted your request header
ah yes! much more obvious there, heh! ![:slight_smile: :slight_smile:](https://community.retool.com/images/emoji/apple/slight_smile.png?v=12)
close, but the value needs to be outlook.body-content-type=text
and that finally worked for me.
![image](https://community.retool.com/uploads/default/original/3X/c/f/cfd293bcb9faa96aa30b6692318d4f9d793464df.png)
EDIT: It seems that the quoting is optional, as I see I left mine unquoted and it still worked
2 Likes