I want to make a HTTP JS Request. How can I configure it as in API connectors I always have to first choose the method.
Anyway co connect directly and execure some JS before getting to POST call?
So, you want to run a script and then depending on the script you want to call the API with api connecotr.
why not user a run script, whcih trigger a workflow usering Java to bubble element with toolbox.
add a java to bubble element give it a suffix … and then with the workflow you want to trigger it, use run script
as step inside it, run your javascript and it the end of the script call the java to bubbile funciton the name would be fn_bubble_suffix
the suffix here is the vlaue you added in your java to bubble element.
this will trigger a workflow in side it call the api connect. you can pass data into it, also just choose the correct type.
if you still stuck, ping me would love you walk you through it, and if i get it wrong . i appologize
Actually what I am doing is sending a call that starts with Java Script and then later in it’s body it has specific call defined. It starts like this and then it has options defined which later have the method and whole body/bearer defined.
The call beginning:
var request = require(‘request’);
var fs = require(‘fs’);
var options = {
‘method’: ‘POST’, … and the life goes on
That’s why I need a raw/ no headers call. You can make one in make, but want to have this option in bubble as well. I know there is a plugin for that, but wonder if I can do it natively. As it should be possible.