How can I populate the data of a record type from a field

Hello, I'm new, I need your help to know if there is a way to populate the Section Layout information as in the image from the id of a related field.

What I have tried is to create a local variable, but I don't know how to put that value in the expression (see the image).

rule expression

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data