what exactly rp!id contains?

A Score Level 2

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.

Parents
  • 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 :) 

Reply
  • 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 :) 

Children
No Data

 Discussion posts and replies are publicly visible