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

How to upload data into "Sheet2" instead of "Sheet1" #61

Open
abhishek-lakra opened this issue Mar 5, 2022 · 0 comments
Open

How to upload data into "Sheet2" instead of "Sheet1" #61

abhishek-lakra opened this issue Mar 5, 2022 · 0 comments

Comments

@abhishek-lakra
Copy link

import sharepy

s = sharepy.connect("https://xxx.sharepoint.com", username='xxx@xxx.com', password='xxx')

with open("file.xlsx", "rb") as file_data:
    try:
        response = s.post(url = "{url of file}", data=file_data)
    except Exception as err:
        print("Some error occurred:",str(err))

From the above code I am able to insert data into spreadsheet but it is inserting into "Sheet1" but I want to insert into "Sheet2". Can someone help me how can I achieve that.

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

No branches or pull requests

1 participant