Anyone know how to save the whole request data body?

Question on the backend workflows.

Has anyone figured out how to save the whole request data body to the database? Not just each part separately. It would be fine to be saved as text but I haven’t been able to figure out a workaround for this.

If anyone has any ideas, I would appreciate it if you could send them my way. :blush:

This is not possible.
What you can consider is to use an ID to call the API and get the whole payload this way.
If you are sending to the API with your own solution, you could send it as text instead of json.

1 Like

:cry: That’s what I thought. I was hoping there was a workaround for it that I wasn’t thinking of yet. Thanks @Jici

1 Like

I found a funny way of doing this :smiley:

If you already aware of the format the Request Data will come in with, you can just rebuild the JSON as an arbitrary text and then save it to the database.

Hope it helps!

Thanks @jonah.deleseleuc

I think the problem is that I have way too many fields that I don’t want to have to go through and map each one like that. Also, I was hoping to accept whatever is sent. No matter what the structure is. Even if it’s different.

I will keep it in mind though. It might not be too bad though. It’s worth giving it a shot. Or at least it might spark another idea from doing it this way.

Thanks for the out of the box thinking. :+1:

If it’s a webhook, the API you are working with definitely has a sample request template (a “what to expect”) JSON. Literally just copy paste the whole thing and replace the values in between the quotes with the dynamic data!

You’re welcome :slight_smile: