Is there an easy way to get all saved searches tha...
# sdf
b
Is there an easy way to get all saved searches that are using a certain field? I had tried to check a saved search object in SDF but the definition itself seems to be encoded.
g
Hi @BS, Indeed it's encoded. It's a base64 of a gzip of an xml. You can see an open-sourced code example of dealing with it at https://github.com/salto-io/salto/blob/main/packages/netsuite-adapter/src/saved_search_parsing/saved_search_parser.ts , but admittedly it's in the context of another project so can't just be used as-is as a utility without significant changes. I think your options are to either use SDF and decode that blob on your own, or use something like Salto (either the open-source version or the free-tier) which decodes it and also automatically detects the dependencies (full disclosure -- I am from Salto).
👍 1