Is there any good guide how to read an XML file send to a bubble webhook? (API workflow external)
I want to read the information from this file and translate it to our app logic.
Is there any good guide how to read an XML file send to a bubble webhook? (API workflow external)
I want to read the information from this file and translate it to our app logic.
If this is sent as a file, you can call this file url with Bubble API Connector.
Either I sort of reversed in my mind back to the moment when I couldnāt send a file or somehting is off.
I am sending a file to a webhook in bubble.
Postman request is:
curl --location āwebhookā
āheader āAuthorization: Bearer xxxxā
āheader āContent-Type: text/plainā
ādata ā{
āFileā: {
āfilenameā: āBla.xmlā,
ācontentsā: ābase64ā
}
}ā
And I get info
{
āstatusCodeā: 400,
ābodyā: {
āstatusā: āMISSING_DATAā,
āmessageā: āMissing parameter for workflow expeditors_webhook: parameter Fileā
}
}
So how should I build it that I can send a file?
I cannot put a postman param as a file, so I am missing something here.
If I use the form, it still doesnāt work for some reason.
I was there once, that I could send a file, but now I somehow lost this skill
OK, I have solved it somehow by coping another curl that actually works.
So here comes another issue:
I want to read this xml file and schedule API flow based on the data in side the file.
Do I need to convert it or can I read it somehow via bubble.io?
As the file should have very strict syntax which doesnāt differ much one from another.
** this one simple issue already has a few topics, on forum, thatās crazy**
I already provided you the solution. Use API connector to fetch the xml file. Bubble will parse it. In API connector, in url forld, you just need to set [url] and dynamically fill this field fron backend WF file.
Thanks @Jici.
I didnāt understand your answer at the first time, thou I still cannot properly do it.
So I have a webhook that receives a file and then I am doing another API call where I send the fileās URL and expect Text? Or this API should expect a file and later I extract itās URL?
As in both cases I do not receive the fileās content. I just get the file URL as a string.
The starting point for me is - that I already have a file from the webhook received and saved in my database.
Thanks for being supportive
OMG that⦠is⦠literally⦠awesome!
Thanks!