Post-processing in functions - should it work?
We are implementing DataDog Logging so that we can monitor some of the API calls that we are making. I created a function to call datadog's api and send it information. It works fine. However, I'd like to run it post-process so that it happens after the call is complete. When I made this change, the events stopped posting to DD. Any ideas on why this isn't working? Is post-processing in functions supported?
Best Answer
-
That's what I would try, yes :).
1. Create var v_api_call = input:api_call
2. Create var v_request_endpoint = input:request_endpoint
3. Post processing (same stack, but using var instead of input)
Answers
-
Here's the function stack, if it's helpful
-
My very first question for you : Did you include ANY input values (api_call or request_endpoint) in ANY of your postprocess components ?
So far I see 1.1, 1.1.1 , 1.1.2 and 1.4
Dump all of your inputs into vars first before calling post processing, then call post processing by using these vars instead of input then try your post processing again.I know we were suppose to be able to use input as post process values, but it never worked for me… and dumping the input into var before Post Process and using these var in Post Process worked for me everytime!
-
Thanks Matt! Yes, I'm directly referencing the inputs in the stack. So I need to create the variables before the post-process function and reference those?
-
Thanks, I will give it a try!
-
Following up that this worked for me. Thanks!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback