Hi,
We are trying to create Expression based Record by getting the date from View.
Written expression rule to return todatasubset with different identifiers mapped other than Primary id.
primary key for the resultant cdt is different from the todatasubset identifiers.
Now what exactly rp!id contains?is it contain the primary key id or the values which are mapped in the identifiers in todatasubset?
Thanks in advance.
Discussion posts and replies are publicly visible
rp!id will return the value of the identifier for the current record. For example, suppose you have an expression-backed record that contains a list of cases, with fields called caseId and caseNumber. If I choose caseNumber as the data in the identifiers property, that is what will be used as rp!id, even if caseId is the primary key of your source CDT.
That being said...is there a reason that you don't just make them the same thing? It seems likely that it will lead to confusion if you use a different field :)
Could you use a!datasubset() rather than fn!todatasubset. The new function provides you ability to specifically define your identifiers i.e. rp!id
Trust this would solve your query.
Thaks for the prompt response. now got the clarity.