Share via

Text from url using office scripts

Anonymous
2022-05-19T22:37:12+00:00

I need help fetching the text content from a url. Here is my code so far. Console.log shows nothing. What am I missing?

function main(workbook: ExcelScript.Workbook)

{fetch("https://people.sc.fsu.edu/~jburkardt/data/csv/addresses.csv").then(response => response.text()).then(data => {console.log(data)})}

***Moved from Spanish Forum***

Microsoft 365 and Office | Excel | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-20T05:36:18+00:00

    Hello,

    Thanks for posting in this forum.

    According to your description, we understand you want to use Office scripts in Excel to fetch text content from a URL.

    Since the question is related to Office scripts, considering we have a dedicated channel Microsoft Q&A Community - office-scripts-excel-dev, to make sure you get professional assistance, we sincerely recommend you go to the community and post a new question.

    At the same time, we searched a lot but didn't find similar threads. So we still recommend you go to the community we mentioned above, engineers and experts over there have more experience about Office scripts related issues and questions, they will also share specific suggestions based on the specific situation on your side.

    Thanks for your patience and understanding. We hope you are keeping safe and well!

    Best Regards,

    Tina

    Was this answer helpful?

    0 comments No comments