Hi Team,
I need to check whether the sheet is present in google sheet.
Please let me know which activity to be used to check whether the sheet exists.
Regards.
Hi Team,
I need to check whether the sheet is present in google sheet.
Please let me know which activity to be used to check whether the sheet exists.
Regards.
@sowjanya.s
GSuite Application Scope
JSONPath: “path/to/credentials.json”
Scopes: “https://www.googleapis.com/auth/spreadsheets.readonly”
Try Catch
Try
Read Range
SpreadsheetId: "your_spreadsheet_id"
SheetName: "SheetNameToCheck"
Range: "A1:A1"
Output: dt (DataTable)
Catch
Exception: System.Exception
Sequence
// Handle the exception (Sheet does not exist)
Log Message
Level: Error
Message: "Sheet does not exist."
This will give you all sheet names available in the spreadsheet. You can add further logic as per your requirement.
Thanks,
Ashok ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.