It seems that you would require to re-arrange the values of the Excel to a different format.
Maybe you could try the below steps :
Prepare an Output Datatable using Build Datatable activity having two columns, Preferably String or Object types. Let’s name it as OutputDT.
We can then use the below Expression to get the data in a Table format as required :
OutputDT = (From s In DT.AsEnumerable.SelectMany(Function(x)Split(x("Your Column Name").ToString)).toarray
Let firstValue = Split(s,"-")(0).ToString
Let secondValueArray = Split(Split(s,"-")(1),",").ToArray
From val In secondValueArray
Select OutputDT.Rows.Add(firstValue,val)).CopyToDataTable
Here, DT is your Datatable from Input Excel, You would need to provide the proper column name in place “Your Column Name” in the expression which contains the values to Split.
Thank you for your workflow. I’m able to fetch the values but actual rewuirement is I need to enter those values in the WebPage portal. How can i do that dynamically?
As I cannot share Web Page screenshot due to confidentiality, I have shown you in the example how the page will have dynamic fields on every entry.
Hii @Vaishnav_Tej ,
I have one query, I just wanted to know in the webpage how many slots will be there to update the values of A and B.
If only one each is there for A and one for B,’
then how you want the result of A to be printed because in the output if your input is like
A-20,50 B-300,400
Then your output will be
A 20
A 50
B 300
B 400
You want me to add all the values of A aswell as B or You want me to Type the values seperately?
Additionally let us know how the fields are presented in the portal, Is it available in a Tabular format ?
We should be able to identify the field names at first either by performing Table Extraction and get the data or by using Find Children activity and get the list of fields.
Then according to this data, we can filter the Resultant Output we have created accordingly and then enter the data into the portal.
Let us know some more details of the representation of the Fields in the portal.
@Vaishnav_Tej ,
I have updated my workflow according to your requirement.I have left select item and type into activity just by adding variable didnt indicate since the webpage is not available you can make the selectors dynamic and check.