I would like to know how one can add background color to gsheet cells in UiPath. or is there a way to format a data table and add background color, then write the datatable to gsheet?
Basically, what I want to do is so that every time information is appended to gsheet, its done so with a different color to have a visual division of the appended data for identification.
You can try applying a rule under conditional formatting for a certain column to fill the color of the cell based on some conditions.(ex.fill it with green, if bot types âYesâ in it)
you can add background color to Google Sheets cells in UiPath by using the âSet Range Colorâ activity from the âUiPath.GSuite.Activitiesâ package. Here are the steps to do it:
Open your UiPath project and add the âSet Range Colorâ activity to your workflow.
In the âPropertiesâ panel, configure the following properties:
âRangeâ: Enter the range of cells that you want to apply the background color to, in A1 notation (e.g., âA1:C5â).
âColorâ: Choose the background color that you want to apply to the cells.
If you want to apply the same background color to multiple rows or columns, you can use a âFor Each Rowâ or âFor Each Columnâ activity to loop through the rows or columns and apply the color to each one.
Alternatively, you can format a data table in UiPath and add background color to the rows, and then write the data table to a Google Sheet. Here are the steps to do it:
Create a data table in UiPath and populate it with data.
Use the âAdd Data Rowâ activity to add the rows to the data table. For each row, you can set the âBackColorâ property to the background color that you want to apply.
Once you have formatted the data table, use the âWrite Rangeâ activity to write the data table to a Google Sheet. When you do this, the background color that you applied to the rows in UiPath will be preserved in the Google Sheet.
Hi @ABHIMANYU_THITE1 thank you for your solution, however even though I have the âUiPath.GSuite.Activitiesâ package installed, I canât find such activity for Gsheet, only for excel, Any ideas as of why i am not seeing this activity?