Infinite Recursion Protection help (Plaid Plugin)

So I have budgeting app that use plaid to pull transactions. I am currently using @lostsheep plugin to use plaid and pull transactions.

The transactions is going into an infinite recursion loop since it is alwasy pulling transactions.

@lostsheep gave me some directions on how to possibly deal with it. However, it is something I have never really done before and I would hate to break one of the most important parts of my app. But I also want to avoid allowing the depth of WF to be high and not have the recursion protection when I need it. Lost sheep said it was beyond his scope for the plugin so I am reaching out to see if anyone could help.

This is the current setup and what Lost Sheep told me to do.

ps. I did read the bubble doc on schedule api wf as a list, but it is not helpful. I need to know what is the outcome I am actually aiming for for me to figure it out.

update: that database trigger schedules this WF, which is where the recursion is happening.

Hey man, I built something just like this. The simple answer is to use the DATA API to create all the objects.

There is no “loop” or “recursion” in that way. With your current system, there will be recursion no matter what since you need to run 1 Action Per Transaction.

With the Create via API method you can create all the records in one action.

If you need help let me know.

CC: @lostsheep just FYI this method worked best for me, if others ask as well

Thats the thing. I do not have access to the data api for the transactions since it is a plugin. Unless I am missing what you meant.

This is the bubble manual: Data API requests | Bubble Docs

Basically you need to create a workflow in your app that creates the object you want, then you create an API call to your own App using this: https://myapp.bubbleapps.io/version-test/api/1.1/obj/rentalunit

High level:

  • you add this new call to your api connector
  • you then go to app api settings, make sure the data api is checked (see manual)
  • make sure privacy rules allow a user to create things via api
  • Then, create a test object via json in the Api Connector

The final step after being able to create 1 single object is learning how to send JSON from the Plaid response so you can create all at once

Here is a video walkthrough: https://www.youtube.com/watch?v=lyUBv2XrDMQ

1 Like

Appreciate it. I will have a look at it.

This topic was automatically closed after 70 days. New replies are no longer allowed.