Hi.
i tried to write custom value in the database…if string isempty or null…
String.IsNullorEmplty(CurrentRow(“Column Name”).ToString.Equals(“Null Data”).ToString…
Unable to Write Null Data (Custome text)
Thanks
Shyam
Hi.
i tried to write custom value in the database…if string isempty or null…
String.IsNullorEmplty(CurrentRow(“Column Name”).ToString.Equals(“Null Data”).ToString…
Unable to Write Null Data (Custome text)
Thanks
Shyam
Try like below expression
String.IsNullorEmplty(CurrentRow(“Column Name”).ToString.Equals(“”).ToString
Regards
Gokul
Hi @Shyam_Pragash ,
If you are trying to check whether a string is null or empty, then this ought to do the trick:
IsNothing(CurrentRow(ColumnNameOrIndex)) OrElse String.IsNullOrEmpty(CurrentRow(ColumnNameOrIndex).ToString)
Kind Regards,
Ashwin A.K
Hi.
Where i mension the custom text ?
Use if condition
If the column is empty or null
Then
Use Assign activity
LHS → Currentrow(“ColumnName”)
RHS → “Custom Text”
Write range activity to write the data in the excel
Regards
Gokul
Is this what you meant?
If(IsNothing(CurrentRow(ColumnNameOrIndex)) OrElse String.IsNullOrEmpty(CurrentRow(ColumnNameOrIndex).ToString),"CustomText", CurrentRow(ColumnNameOrIndex))
AssignCustomValuesIfNull.xaml (8.9 KB)
Kind Regards,
Ashwin A.K
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.