Hi All, I have a CDT rule input of type "Any Type" called r

Hi All,

I have a CDT rule input of type "Any Type" called ri!companyContact. I am trying to pass this rule input to a textField's value field. There is a nested CDT inside this CDT. I am actually trying to store the value into one of those fields inside the inner CDT. But it is giving an error saying "Cannot index property "CompanyContactDetails" of type Text into type Text" where inner CDT is called "CompanyContactDetails".
This is the code:

a!textField(
label:"",
value: ri!companyContact.CompanyContactDetails.DetailTypeId,
saveInto: ri!companyContact.CompanyContactDetails.DetailTypeId
)

Can anybody help on this issue?...

OriginalPostID-107781

OriginalPostID-107781

  Discussion posts and replies are publicly visible

Parents
  • the thing is I am taken this rule outside and testing it by itself. RIght now I am not mapping it into any ac's or pv's. I am trying to test it out in an expression editor and it works if I just put the CDT name itself in the value and saveInto fields. But whenever I put a dot operator and the inner CDT name, that's when it complains. I thought if you have a rule input of type anytype it can expect a dot operator.
Reply
  • the thing is I am taken this rule outside and testing it by itself. RIght now I am not mapping it into any ac's or pv's. I am trying to test it out in an expression editor and it works if I just put the CDT name itself in the value and saveInto fields. But whenever I put a dot operator and the inner CDT name, that's when it complains. I thought if you have a rule input of type anytype it can expect a dot operator.
Children
No Data