Hi Team,
I'm trying to fetch the super team field data in relationship manager table and which is linked from recipient to relation ship manager as 1 to 1 cardinality.
I'm using below code to fetch them
----------------------------------------------------------
var recipientquery = xtk.queryDef.create(<queryDef schema="nms:recipient" operation="select" >
<select>
<node expr="@id"/>
<node expr="[relationshipManager/@superTeam]" alias="@superTeamDec"/>
<node expr="Smart(Lower(@firstName)) + ' ' + Smart(Lower(@lastName))" alias="@fullName"/>
</select>
</queryDef> );
var recipientData = recipientquery.ExecuteQuery();
------------------------------------------------------------
But I'm getting below errors [Highlighted in red]
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @VV7,
Great, by the image you are sharing the element name is lnkRelationshipManager, not relationshipManager. You should use the same name in your code.
Let me know if it solves the error.
Best,
Celia
Views
Replies
Total Likes
Hi @VV7,
Based on your error you will need to define relationshipManager on your recipient schema, it seems that the link is not defined, which is why it fails.
Once you confirm that the link is defined on you JS you should add a join.
Let me know if you need more help!
Best,
Celia
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @VV7,
Great, by the image you are sharing the element name is lnkRelationshipManager, not relationshipManager. You should use the same name in your code.
Let me know if it solves the error.
Best,
Celia
Views
Replies
Total Likes
Hey Celia,
You Gotcha!
It's working Thankyou so much!
Views
Likes
Replies