How to remove duplicate values in an Array in ReFramework without queue

I want to create an array Name = “RUCHITA PATIL”
And then remove the duplicate values and list only the unique values in REFRAMEWORK without queue
Can somebody please guide me on this? Thanks!!

1 Like

Hey @Ruchita_Patil

  • You can create an array
arrStr = { "aaa", "BBB", "aaa", "ccc" }
  • Finding unique values
arrStr = arrStr.Distinct().ToArray

This will provide you the array after removing the duplicate values.

You can now use the above array in ReFramework to process the transactions.

  • Remove the GetTransaction Item activity in the GetTransaction workflow

  • Change the IF condition in the GetTransaction workflow as in_TransactionNumber = arrStr.Length

  • If the above condition is true : out_TransactionItem = arrStr(in_TransactionNumber)

  • If the above condition is false :
    out_TransactionItem = Nothing

Kindly make sure you change the datatype for TransactionItem to string & also commenting to Set Transaction Status actions in the Set Transaction Status Workflow

Hope this helps

Thanks
#nK

1 Like