Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to get formula values (allows for fetching image urls) #23

Open
TheBoroer opened this issue Jan 25, 2022 · 1 comment
Open

Ability to get formula values (allows for fetching image urls) #23

TheBoroer opened this issue Jan 25, 2022 · 1 comment

Comments

@TheBoroer
Copy link

Hey!
Could we please have an option to specify the valueRenderOption setting for the v4 sheets request?

'valueRenderOption': 'UNFORMATTED_VALUE',

Another method called formula_values() could work too where it just has valueRenderOption: 'FORMULA'.
The reason I need to access formulas is because it's the only way to fetch the image url for cells that hold image content (yup, google sheets cells can hold images now!!). The regular .values() method only returns an empty string.

@xflr6
Copy link
Owner

xflr6 commented Jan 31, 2022

Hey,

spounds good to me. Upstream docs:

Not sure if we should also add DateTimeRenderOption.

I think WorkSheet.values() could just always fetch the values instead of using the loaded ones if a different format is requested.

WDYT?

Let me know if you want to give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants