Data from related record in View

Is there a way to pull the data from a related record and show it on the View screen?

I want to pull the most recent client case note (related record) and show it on the View screen.

Hi James

Which screen are you referring to, when you say the “View screen”?

Hello James,

You can grab data, including the Related Record field, in records using the GET REST API.

Kintone Developer Program - Get Records
https://developer.kintone.io/hc/en-us/articles/360019245194-Get-Records

I’m not sure where you want to show the grabbed data. However, you can use getHeaderMenuSpaceElement or kintone.app.getHeaderSpaceElement to show it on the top of a Record list.

Kintone Developer Program - Get Record List Header Menu Element
https://developer.kintone.io/hc/en-us/articles/213148937/#getHeaderMenuSpaceElement

Kintone Developer Program - Get Record List Header Element
https://developer.kintone.io/hc/en-us/articles/213148937/#getHeaderSpaceElement

The following article will help you place something on those elements (in this article, it’s a button).

Kintone Developer Program - Add buttons to the record list
https://developer.kintone.io/hc/en-us/articles/213149437-Add-buttons-to-the-record-list#step2

I hope this will help.

Thank you,
Chris