Skip to Main Content

APEX

I have a REST data source for genres of a given movie, but how can I store those in a local table?

Sean MontgomeryMar 7 2022

I want to do this so I can filter movies by genre. As an extension of the APEX Movie Catalog tutorial, I created a REST data source for retrieving the genres from the Movie Database movie detail JSON payload, and I can output the genres onto the Movie Details page, but if the user adds a movie to their watch list, how can I store the genres in my movies_x_genres table?
I keep believing I can do something like write the rows of #APEX$SOURCE_DATA# to my table, but I have not figure out quite how to do that.
This seems like something people would need to do, basically query a web service (like TheMovieDB.org) and store the multiple records that are returned within the JSON payload, but I have not found a solution yet and have not created a working solution yet, either. I'd love to hear if others have done something similar.

Comments
Post Details
Added on Mar 7 2022
2 comments
124 views