How to create items in linked tables in Plasmic CMS?

I have created 2 tables in Plasmic CMS as followed:

Table#1
[1] EventID (Type: Text)
[2] EventName (Type: Text)

Table#2
[1] CategoryID (Type: Text)
[2] CategoryName (Type: Text)
[3] EventID (Type: Ref)

How do I create items in both of the tables using Plasmic CMS API?

Thanks for your advice.

I’m not quite understanding your question, but here’s a link to our API docs on creating a CMS item: Plasmic CMS - API Reference | Learn Plasmic

Apology for the confusion. Let me rephrase my situation.

I have two tables as followed:
Table#1 is for event and
Table#2 are categories in each of the event.

i.e. each event can have multiple categories.

Table#2 is linked to Table#1.

So when I create event in Table#1 , how do I create categories in Table#2 that linked back to the event in Table#1?

Thanks for the advice.

Plasmic CMS supports a “ref” type, which you could use to specify relationships between tables.

In your example, you could achieve this in one of two ways:

  1. In Table#1, add a “list” field of type “ref” that links to Table#2.
  2. In Table#2, add a “ref” field to that links to Table#1.

Then you would need to make the necessary queries to display the data on your pages.