if the amount of the invoice and the name of the supplier are the same (red boxes), then I must obtain from the json that is in column I some data (blue boxes) and add them to an excel
First to get unique combination of name and invoice use in assign uniquedt = dt.Defaultview.ToTable(True,“Name”,“invoice”)
Now use a for loop on the uniquedt and inside it use a filter on the main dt to get all the invocie rows related to the given name and invoice in the filter conditions
Now use another loop on the filtereddt to get each json values and add them
to get the json values use deserialize json activity(Download UiPath.Webapi.Activities package) and output would be jobj
Then as per structure jobj(“DynamicProperties”)(“ID de proveedor”).ToString, similar get the other values
Did you change the type argument in deserialize json to jobject? If not please do it…and on right you have to use the output of deserialize activity not the string value that you gave as input
sorry, I already have the same is the dtSlect variable
but the rest of the data is in the dtExcel
I need it to only extract the values from the excel of the rows that appear in dtSlect
I do not know if I explained well
I did so but it doesn’t work for me