You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Contributing.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Pull requests are typically reviewed within 10 business days.
61
61
62
62
## Use GitHub, Git, and this repository
63
63
64
-
**Note**: Most of the information in this section can be found in [GitHub Help] articles. If you're familiar with Git and GitHub, skip to the **Contribute and edit content** section for the specifics of the code/content flow of this repository.
64
+
**Note**: Most of the information in this section can be found in [GitHub Help] articles. If you're familiar with Git and GitHub, skip to the **Contribute and edit content** section for the specifics of the code and content flow of this repository.
65
65
66
66
### To set up your fork of the repository
67
67
@@ -70,12 +70,12 @@ Pull requests are typically reviewed within 10 business days.
70
70
3. Create your own fork of this repository. To do this, at the top of the page, choose the **Fork** button.
71
71
4. Copy your fork to your computer. To do this, open Git Bash. At the command prompt enter:
72
72
73
-
git clone https://github.com/<your user name>/<repo name>.git
Congratulations! You've now set up your repository. You won't need to repeat these steps again.
@@ -91,7 +91,7 @@ To make the contribution process as seamless as possible, follow these steps.
91
91
3. Submit a pull request to the main repository.
92
92
4. Delete the branch.
93
93
94
-
**Important** Limit each branch to a single concept/article to streamline the work flow and reduce the chance of merge conflicts. Content appropriate for a new branch includes:
94
+
**Important** Limit each branch to a single concept or article to streamline the workflow and reduce the chance of merge conflicts. Content appropriate for a new branch includes:
95
95
96
96
* A new article.
97
97
* Spelling and grammar edits.
@@ -100,17 +100,17 @@ To make the contribution process as seamless as possible, follow these steps.
100
100
#### To create a new branch
101
101
102
102
1. Open Git Bash.
103
-
2. At the Git Bash command prompt, type `git pull upstream master:<new branch name>`. This creates a new branch locally that is copied from the latest OfficeDev master branch.
103
+
2. At the Git Bash command prompt, type `git pull upstream main:<new branch name>`. This creates a new branch locally that is copied from the latest OfficeDev/office-scripts-docs main branch.
104
104
3. At the Git Bash command prompt, type `git push origin <new branch name>`. This alerts GitHub to the new branch. You should now see the new branch in your fork of the repository on GitHub.
105
105
4. At the Git Bash command prompt, type `git checkout <new branch name>` to switch to your new branch.
106
106
107
107
#### Add new content or edit existing content
108
108
109
-
You navigate to the repository on your computer by using File Explorer. The repository files are in `C:\Users\<yourusername>\<repo name>`.
109
+
You navigate to the repository on your computer by using File Explorer. The repository files are in `C:\Users\<your username>\office-scripts-docs`.
110
110
111
111
To edit files, open them in an editor of your choice and modify them. To create a new file, use the editor of your choice and save the new file in the appropriate location in your local copy of the repository. While working, save your work frequently.
112
112
113
-
The files in `C:\Users\<yourusername>\<repo name>` are a working copy of the new branch that you created in your local repository. Changing anything in this folder doesn't affect the local repository until you commit a change. To commit a change to the local repository, type the following commands in GitBash:
113
+
The files in `C:\Users\<your username>\office-scripts-docs` are a working copy of the new branch that you created in your local repository. Changing anything in this folder doesn't affect the local repository until you commit a change. To commit a change to the local repository, type the following commands in Git Bash.
114
114
115
115
git add .
116
116
git commit -v -a -m "<Describe the changes made in this commit>"
@@ -130,38 +130,38 @@ When you're finished with your work and are ready to have it merged into the mai
130
130
1. In the Git Bash command prompt, type `git push origin <new branch name>`. In your local repository, `origin` refers to your GitHub repository that you cloned the local repository from. This command pushes the current state of your new branch, including all commits made in the previous steps, to your GitHub fork.
131
131
2. On the GitHub site, navigate in your fork to the new branch.
132
132
3. Choose the **Pull Request** button at the top of the page.
133
-
4. Verify the Base branch is `OfficeDev/<repo name>@master` and the Head branch is `<your username>/<repo name>@<branch name>`.
133
+
4. Verify the Base branch is `OfficeDev/office-scripts-docs@main` and the Head branch is `<your username>/office-scripts-docs@<branch name>`.
134
134
5. Choose the **Update Commit Range** button.
135
135
6. Add a title to your pull request, and describe all the changes you're making.
136
136
7. Submit the pull request.
137
137
138
-
One of the site administrators will process your pull request. Your pull request will surface on the OfficeDev/<reponame> site under Issues. When the pull request is accepted, the issue will be resolved.
138
+
One of the site administrators will process your pull request. Your pull request will surface on the `OfficeDev/office-scripts-docs` site under Issues. When the pull request is accepted, the issue will be resolved.
139
139
140
-
#### Create a new branch after merge
140
+
#### Create a new branch after the merge
141
141
142
142
After a branch is successfully merged (that is, your pull request is accepted), don't continue working in that local branch. This can lead to merge conflicts if you submit another pull request. To do another update, create a new local branch from the successfully merged upstream branch, and then delete your initial local branch.
143
143
144
-
For example, if your local branch X was successfully merged into the OfficeDev/office-scripts-docs master branch and you want to make additional updates to the content that was merged. Create a new local branch, X2, from the OfficeDev/office-scripts-docs master branch. To do this, open GitBash and execute the following commands:
144
+
For example, if your local branch X was successfully merged into the OfficeDev/office-scripts-docs main branch and you want to make additional updates to the content that was merged. Create a new local branch, X2, from the OfficeDev/office-scripts-docs main branch. To do this, open Git Bash and execute the following commands:
145
145
146
146
cd office-scripts-docs
147
-
git pull upstream master:X2
147
+
git pull upstream main:X2
148
148
git push origin X2
149
149
150
150
You now have local copies (in a new local branch) of the work that you submitted in branch X. The X2 branch also contains all the work other writers have merged, so if your work depends on others' work (for example, shared images), it is available in the new branch. You can verify that your previous work (and others' work) is in the branch by checking out the new branch...
151
151
152
152
git checkout X2
153
153
154
-
...and verifying the content. (The `checkout` command updates the files in `C:\Users\<yourusername>\office-scripts-docs` to the current state of the X2 branch.) Once you check out the new branch, you can make updates to the content and commit them as usual. However, to avoid working in the merged branch (X) by mistake, it's best to delete it (see the following **Delete a branch** section).
154
+
...and verifying the content. (The `checkout` command updates the files in `C:\Users\<your username>\office-scripts-docs` to the current state of the X2 branch.) Once you check out the new branch, you can make updates to the content and commit them as usual. However, to avoid working in the merged branch (X) by mistake, it's best to delete it (see the following **Delete a branch** section).
155
155
156
156
#### Delete a branch
157
157
158
158
Once your changes are successfully merged into the main repository, delete the branch you used because you no longer need it. Any additional work should be done in a new branch.
159
159
160
160
#### To delete a branch
161
161
162
-
1. In the Git Bash command prompt, type `git checkout master`. This ensures that you aren't in the branch to be deleted (which isn't allowed).
162
+
1. In the Git Bash command prompt, type `git checkout main`. This ensures that you aren't in the branch to be deleted (which isn't allowed).
163
163
2. Next, at the command prompt, type `git branch -d <branch name>`. This deletes the branch on your computer only if it has been successfully merged to the upstream repository. (You can override this behavior with the `–D` flag, but first be sure you want to do this.)
164
-
3. Finally, type `git push origin :<branch name>` at the command prompt (a space before the colon and no space after it). This will delete the branch on your github fork.
164
+
3. Finally, type `git push origin :<branch name>` at the command prompt (a space before the colon and no space after it). This will delete the branch on your GitHub fork.
165
165
166
166
Congratulations, you have successfully contributed to the project!
167
167
@@ -181,7 +181,7 @@ Fill out the form at [Join GitHub](https://github.com/join) to open a free GitHu
181
181
182
182
You will automatically be sent a notice that you need to sign the Contributor's License Agreement (CLA) if your pull request requires one.
183
183
184
-
As a community member, **you must sign the Contribution License Agreement (CLA) before you can contribute large submissions to this project**. You only need complete and submit the documentation once. Carefully review the document. You may be required to have your employer sign the document.
184
+
As a community member, **you must sign the Contribution License Agreement (CLA) before you can contribute large submissions to this project**. You only need to complete and submit the documentation once. Carefully review the document. You may be required to have your employer sign the document.
185
185
186
186
### What happens with my contributions?
187
187
@@ -200,7 +200,6 @@ Pull requests are typically reviewed within 10 business days.
200
200
* To learn more about Markdown, go to the Markdown creator's site [Daring Fireball].
201
201
* To learn more about using Git and GitHub, first check out the [GitHub Help].
202
202
203
-
[GitHub Home]: http://github.com
204
203
[GitHub Help]: http://help.github.com/
205
204
[Set up Git]: https://help.github.com/articles/set-up-git/
Copy file name to clipboardExpand all lines: docs/testing/power-automate-troubleshooting.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Troubleshoot Office Scripts running in Power Automate
3
3
description: Tips, platform information, and known issues with the integration between Office Scripts and Power Automate.
4
4
ms.topic: troubleshooting-general
5
-
ms.date: 02/08/2024
5
+
ms.date: 08/13/2024
6
6
ms.localizationpriority: medium
7
7
---
8
8
@@ -95,6 +95,12 @@ There are two reasons that the parameters or returned data of a script are not a
95
95
96
96
The signature of a script is stored with the **Excel Business (Online)** connector when it is created. Remove the old connector and create a new one to get the latest parameters and return values for the **Run script** action.
97
97
98
+
## Some web APIs not available with Power Automate flows
99
+
100
+
Some web APIs, such as `TextEncoder` and `Crypto`, may not be available when running Office Scripts in Power Automate flows. See [MDN Web APIs](https://developer.mozilla.org/docs/Web/API) for a full list of web APIs.
101
+
102
+
Power Automate returns the error `*API* is not defined`, where `*API*` specifies a library such as `TextEncoder`, when running a script that uses an unsupported API.
0 commit comments