Populate data from one RecordType to another RecordType

I have a RecordType STG with multiple Records in it. I need to have that data inserted/copied to another RecordType TARGET. Both have the same columns and data types defined in them.

With the exception of Unique Identifiers  (ID Column) in both the Tables, I want the rest of all columns data to be moved from STG to Target.

Can you please advise on how we can do this. I was thinking Script Task in a process model, but need some guidance on this.

  Discussion posts and replies are publicly visible

Parents Reply
  • You are right  , you were spot on, I had both casing/naming issues. I have corrected them and now I am getting the correct output. 

    To capture that output and store it in the Target Table, I am planning on using a Script Task (Data --> Outputs --> Custom Outputs) within a Process Model as below, would that work? I am new to Appian and learning , please advise if my approach is off here?

    a!localVariables(
      local!targetRecords: rule!VWHIAP_GET_TARGET_Review_List(),
      a!forEach(
        items: local!targetRecords,
        expression: 
          if (1=1, 
            saveInto: 
            {
              a!writeRecords(records: local!targetRecords)
            },
            "")
      )
    )

Children