I want to update an A cdt with another B cdt which is subset of A cdt. Is there

I want to update an A cdt with another B cdt which is subset of A cdt. Is there any existing function or an easy way to achieve this goal?

OriginalPostID-218216

OriginalPostID-218216

  Discussion posts and replies are publicly visible

Parents
  • Hi Shaoyongw,

    Create a expression rule with two rule inputs of type (AnyType) and pass your A CDT and B CDT

    Define in fn!type that to which CDT you want to update.. Follow the code like below it will do what actually you want to do in a Expression Rule

    'type!{urn:xxxx:xxxxxx}<CDT_NAME>'(

    name:ri!ACDT.name,
    age:ri!BCDT.age,
    address:ri!ACDT.address,
    workStream:ri!BCDT.workStream
    )
Reply
  • Hi Shaoyongw,

    Create a expression rule with two rule inputs of type (AnyType) and pass your A CDT and B CDT

    Define in fn!type that to which CDT you want to update.. Follow the code like below it will do what actually you want to do in a Expression Rule

    'type!{urn:xxxx:xxxxxx}<CDT_NAME>'(

    name:ri!ACDT.name,
    age:ri!BCDT.age,
    address:ri!ACDT.address,
    workStream:ri!BCDT.workStream
    )
Children
No Data