Posted 11 August 2020, 8:36 am EST - Updated 3 October 2022, 10:12 am EST
Conditional formats error
Posted by: sachot on 11 August 2020, 8:36 am EST
-
-
Posted 12 August 2020, 9:41 am EST
Hi Christophe,
To get a JSON string representation of conditional rules, you need to use the following code:
var formatsJSON = sheet.conditionalFormats.toJSON(); var stringifiedRules = JSON.stringify(formatsJSON && formatsJSON.rules); console.log(stringifiedRules);Regards
Sharad -
Posted 31 August 2020, 7:09 am EST
It works.
Thanks !


