How to map CDT

Certified Associate Developer

Hello,

 

I have a requirement where I need to map data in one CDT to another. The two CDT's are as below

 

DS_SeparatedData which includes FieldIdentifier,DataValue,Datacaption and Keyidentifier - These values are coming from database, Now what I want is I want to map the value of FieldIdentifier and DattaValue manually from another variable. So my another variable would be: VD_SeparatedData which includes FieldIdentifier and DataValue. As per the value available in VD_SeparatedData variable, I want to update the value in DS_SeparatedData. for eg:

 Lets say my DS_SeparatedData consists of following value. i.e.

DS_SeparatedData

         FieldIdentifier:"Email"

         DataValue:abc@abc.com

         Datacaption: "Email ID"

        KeyIdentifier:2

 

VD_SeparatedData

       FieldIdentifier:"Email"

       DataValue:pqr@xyz.com

 

So I want DataValue in VD_SeparatedData variable to get updated in DS_SeparatedData as FieldIdentifier is same on both the variable. 

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to aloks0189
    Hey Alok,

    I don't want to map the data between two different CDT's. I want to map data between two variables of same CDT. Here my variables are different but their CDT is same. for eg, CDT A is one variable of type 'Employee' and CDT B is another variable of same type 'Employee'. Only difference is the number of properties they hold. In this case lets say CDT 'Employee' have 3 fields than variable CDT A contains all the three columns and CDT B contains only two columns. So whatever will be the value inside variable CDT B, I want to make the changes in CDT A.
Children