I am using add data row but it not add record for example I have 10 records I am using for loop first time I add record in add data row and then for first record replace by second at the end I am getting only one record ie last record.only got one row instead to 10 records
Hi @Aditya10989
I got your problem,
Make sure to keep Build Datatable activity outside the loop.
Is Build DataTable Activity outside loop or not ?
As @sharique.khan said, i guess you kept it in inside the loop. Please check it once and then try.
@lakshman @sharique.khan thanks for reply I try both firstly I try inside I am getting value only last inserted then I try outside I am getting null value.Actually I am using in this two workflow one is main and second workflow I am using for loop So I create build data table in main outside work flow but I am getting null value
Hi @Aditya10989,
Can you please attach the screenshot of for each loop and add data row activity.
Thanks,
Shenki
yes sure I am using build data table and for loop in main workflow and add data row in claim shield work flow as mention in attached screen shot
Please insert your add data row in foreach. And iterate through each row and pass it in Add data row.
yes my workflow invoke claim shield is already inside the for each loop where I add data row. as mention in screen shot
Oh sorry.
I thought it’s outside.
Can you please attach your workflow and excel.
yes sure I will send you but you can’t run this because its run on server
Please find enclosed file of attachment ClaimStatusCheck.xaml (179.2 KB) Main.xaml (55.1 KB) New Lexis Nexis Invoice 2019.xlsx (21.8 KB)
@ShenkiSinghai Hi,did you find any solution…?
Hi @Aditya10989,
Apologies for late reply as I was outside.
In your attached main.xaml I am unable to find for each loop.
But for your reference please find attached xaml and data sheet. I have included two way to add row in data table.
- By Invoke method.
- By Add Data row.
Whatever reference you find suitable please use it in your workflow.
Data.xlsx (8.2 KB) Main.xaml (12.2 KB)
Thanks,
Shenki
NP but I did not got solution.For each activity next where I mention build data as mention in screen shot
Hi @Aditya10989
I have opened your xaml but for eac activity was not there, so didn’t able tfind exactly where the issue was. But if you see my attached xaml then you will get the idea how it needs to done.
Thanks
if you see my code I have done the same may be issue related to xaml workflow argument.I try but I am not able to find solution it will helpful if you provide any solution
Hi @Aditya10989,
I cannot find for each in your main.xaml. please resend you all workflow in zip
Thanks