Hi folks, having a tricky time figuring out the cleanest way to do this. Every path I’ve taken seems to run into challenges.
In short, I’m creating a logging system to track user activity.
TABLES:
Activity: contains standard info like User, Page, Activity, etc Activity Data: contains any number of key-value pairs stored in two separate fields in the table
Activity is tied to Activity Data in a one-to-many relationship.
The trick is trying to figure out how to pass this data to API Workflow(s) in a relatively simple fashion.
I was going to send them individually (Activity, then each Activity Data) separately via an API Workflow, but scheduling them removes the ability to know what Activity was created so I can tie the Activity Data entries to it.
I’m not sure how to bundle up a bunch of keys and values via a Workflow to pass to a single API Workflow that would perform the task.
maybe two api workflows…trigger first from page and pass in all necessary values, then last step of the first api workflow is to trigger the second api workflow and pass in the values known from the first to tie that bow in the second api workflow
So I’ve managed to create the key-values JSON in a backend workflow (using JSON Toolkit), but am now stuck on how to create new Things out of this JSON.
Is there a plugin I’m missing that makes this relatively easy? Been banging my head against a wall for a couple hours and am kind of surprised this isn’t easier.