I have a request as below, can you have give me some guidance about how to do it:
I need to fill in a website form base on the specific detail in a excel file one by one
If the specifi excel cell is null, then no need to input corresponding box in the website form
If the specifi excel cell is not null, then replace the original content in the website box with the excel cell detail
Example:
Excel column [Latest Financial Year Total Revenue] is null, then no need to change the website box content(which is “0” in below screenshot)
Excel column [Latest Finanacial Year Total Capital] is not null, then replace the original website box content(“8,000,000”) with the excel cell detail(“10,000,000”)
You can use read cell to read the data into a variable make sure you keep the variable datatype as GenericValue…
Then after read cell use if condition with IsNothing(variable) OrElse String.IsNullOrEmpty(variable.ToString) …on then side it is null so do nothing and on else side it is not so write the data to required field you need using ui activities like type into and pass variable.ToString as in put
@Anil_G There will be no string in such “empty fileds”. I just need to make sure there are no spaces in it while it looks like “empty”. Because it will recover the orignial data in the website form with spaces which will cause problems in business. All I need is to keep website form no change when the relative excel filed is completely null/empty(without spaces)
I face a issue today when I further debug
There is actully some value in my excel column
However, after I ran below activities, the output message is True(which means the activities consider no vaule in my excel column)
Do you have any idea why this issue happen?