I have a requirement that I have to show record view names based some condition.

I have a requirement that I have to show record view names based some condition. So what I did is I have created a rule that
Rule name = GenerateRecordView
input = type_cd
type = Number (Integer)
Body=
if(ri!type_cd=1,
"ABC",
if(
ri!type_cd=2,
"DEF",
"Others"
)
)
Now in view label I wrote
rule!GenerateRecordView(rf!type_cd)
please note that record type is entity based and type_cd is Number(Integer)

In view it is given as "". Any help.

OriginalPostID-222146

OriginalPostID-222146

  Discussion posts and replies are publicly visible