Join the Webstudio community

Updated 7 months ago

Notion relations

At a glance
Hi, thank you for the notion integration tutorial, loved it, super helpful!
One thing I couldn't figure out:
Let's say I have a database of events and a database of people. Every event has person attached to it (eg. the host of the event) using a relation property. On the dynamic page of the event, I want to make a card for the host with their name and photo, and a button that links to the dynamic page of the host person. Can you help me figure out how to do this? When I get to the relation property in the expression edition I can't seem to go any further.
Attachment
Screenshot_2024-07-20_at_13.20.38.jpg
2
B
D
O
23 comments
There is either no relation or it is an object. Please inspect notion data variable
I realised the related database wasn't shared with the integration. Now I can access to id of the related item, but nothing more. Do you maybe have an idea where to look further?
Attachment
Screenshot_2024-07-20_at_19.10.24.jpg
I'm not familiar with notion databases. @John Siciliano maybe you know?
@Daniel Kozma your problem is with notion api, not webstudio, probably a better place to ask these questions is in some notion api related forum or something they probably have
@John Siciliano that's it!!! thank you so much πŸ™‡β€β™‚οΈ
Hey how were you able to get this to work? My rollup comes in showing an empty array even though there is data in it
I may be able to help if i see a screenshot of the relevant part of notion and a builder link
maybe dm if api keys
Thank you so much! So I am connecting to the Notion db, because without the filter I getting the attached response, but then when I apply the following filter:
{
"filter": {
"property": "Rollup",
"rollup": {
"any": {
"rich_text": {
"contains": "text a"
}
}
}
}
}
I get no response.
The notion table looks like the attached image.
Attachment
image.png
The text column in notion is a rollup
Sorry I attached the wrong notion table, the rollup column here is what I am trying to target
Attachment
image.png
Can i see the column config for rollup in notion
I super appreciate this btw ❀️
Normally I would see a Relation field but maybe that's what left and right responses are?
what does the left relations config look like?
maybe your api key need access to the other db too
πŸ€¦β€β™‚οΈ
Thank you so much
Add a reply
Sign up and join the conversation on Discord