Interface and expression rule

Certified Associate Developer

Hi, 

In the interface I use the rule input as my record A1. A field in this interface, I need to populate value from the other record B1.In other to use the relationship in the interface or expression rule, how to define the relationship. 

I tried giving the relationship in "relatedRecordData" in a!queryrecordtype. But, I am getting the below error:

Expression evaluation error at function a!queryRecordType [line 26]: Could not cast from Record Relationship to RelatedRecordData. Details: CastInvalidCould not cast from Record Relationship to RelatedRecordData. Details: CastInvalid

Can someone pls help here, 

  Discussion posts and replies are publicly visible