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: powerapps-docs/developer/data-platform/asynchronous-service.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -589,7 +589,7 @@ Here's what to look for in the results:
589
589
590
590
### Queries for file storage
591
591
592
-
When the [Data column](reference/entities/asyncoperation.md#BKMK_Data) of the `AsyncOperation` table is larger than 4 MB, the data in that column is saved in file storage. The [DataBlobId column](reference/entities/asyncoperation.md#BKMK_DataBlobId) has a value when the row uses file storage. To save space, you might want to identify and delete these records. Use the following queries to discover these records
592
+
Depending on the size of the [Data column](reference/entities/asyncoperation.md#BKMK_Data) of the `AsyncOperation` table, the data in that column may be saved in file storage. The [DataBlobId column](reference/entities/asyncoperation.md#BKMK_DataBlobId) has a value when the row uses file storage. To save space, you might want to identify and delete these records. Use the following queries to discover these records
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/debug-JavaScript-code.md
+30-18Lines changed: 30 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ applies_to:
6
6
- "Dynamics 365 (online)"
7
7
author: adrianorth
8
8
ms.author: aorth
9
-
ms.date: 01/31/2023
9
+
ms.date: 08/07/2024
10
10
ms.reviewer: jdaly
11
11
search.audienceType:
12
12
- developer
@@ -18,11 +18,12 @@ contributors:
18
18
19
19
Custom logic using JavaScript in model-driven apps are contained within JavaScript web resources. JavaScript web resources provide the libraries that define functions developers register as event handlers.
20
20
21
-
In a model-driven app viewed within a web browser, you can use developer tools that all modern browsers provide. With these tools you can locate the JavaScript libraries loaded in the model-driven application, set break points and debug your code using common methods.
21
+
In a model-driven app viewed within a web browser, you can use developer tools that all modern browsers provide. With these tools you can locate the JavaScript libraries loaded in the model-driven application, set break points, and debug your code using common methods.
22
22
23
-
Model-driven apps viewed using mobile apps on Android, or the Windows desktop app require some additional steps. See:
23
+
Model-driven apps viewed using mobile apps on Android, or the Windows desktop app require some more steps. See:
24
24
25
25
-[Debug JavaScript in mobile apps on Android](#debug-javascript-in-mobile-apps-on-android)
26
+
-[Debug JavaScript in mobile apps on iOS](#debug-javascript-in-mobile-apps-on-ios)
26
27
-[Debug JavaScript in the Windows desktop app](#debug-javascript-in-the-windows-desktop-app)
27
28
28
29
> [!NOTE]
@@ -32,7 +33,7 @@ Model-driven apps viewed using mobile apps on Android, or the Windows desktop ap
32
33
33
34
More information:
34
35
35
-
-[mdn web docs: What are browser developer tools?](https://developer.mozilla.org/docs/Learn/Common_questions/What_are_browser_developer_tools).
36
+
-[Mdn web docs: What are browser developer tools?](https://developer.mozilla.org/docs/Learn/Common_questions/What_are_browser_developer_tools).
If you click the **Show Details** link, you can find the details that include: event name, function name, web resource name, solution name, and publisher name.
49
+
If you select the **Show Details** link, you can find the details that include: event name, function name, web resource name, solution name, and publisher name.
49
50
50
51
```
51
52
Xrm.Navigation.openalertDialog is not a function
@@ -68,10 +69,7 @@ In this case, the name of the function was incorrect, `openalertDialog` should b
68
69
69
70
While using JavaScript web resources for mobile scenarios, you can use your Android device to debug your mobile-specific code and ensure it works as expected.
70
71
71
-
> [!NOTE]
72
-
> It is not currently possible to debug devices using iOS.
73
-
74
-
To debug JavaScript in mobile apps, you must complete the three steps below:
72
+
To debug JavaScript in mobile apps on Android, you must complete the following three steps:
75
73
76
74
### 1. Configure your device
77
75
@@ -88,12 +86,7 @@ To debug JavaScript in mobile apps, you must complete the three steps below:
88
86
89
87
1. In the mobile app, go to the list of Power Apps and select on the menu button.
90
88
1. Make sure that the toggle **Enable remote debugging for model-driven apps** is on.
91
-
92
-
:::image type="content" source="media/field-service-mobile-app-settings.png" alt-text="Field service mobile app settings":::
93
-
94
-
1. When enabling this option, there's a confirmation dialog. Select **Confirm**.
More information: [Microsoft Edge: Remotely debug Android devices](/microsoft-edge/devtools-guide-chromium/remote-debugging/)
109
102
103
+
## Debug JavaScript in mobile apps on iOS
104
+
105
+
You can use Safari on a Mac to debug JavaScript web resources on iOS.
106
+
107
+
To debug JavaScript in mobile apps on iOS, you must complete the following two steps:
108
+
109
+
### 1. Configure the mobile application
110
+
111
+
1. In the mobile app, go to the list of Power Apps and select on the menu button.
112
+
1. Make sure that the toggle **Enable remote debugging for model-driven apps** is on.
113
+
114
+
### 2. Debug from your Mac
115
+
116
+
1. Connect your iPhone or iPad to your Mac.
117
+
1. Launch Safari on your Mac.
118
+
1. In the **Develop** menu, find your connected iPhone or iPad, and then look for **Power Apps** or **Field Service**.
119
+
120
+
More information: [Inspecting iOS and iPadOS | Apple Developer Documentation](https://developer.apple.com/documentation/safari-developer-tools/inspecting-ios)
121
+
110
122
## Debug JavaScript in the Windows desktop app
111
123
112
124
To debug JavaScript on Windows, you must first install the prerequisite applications.
@@ -125,7 +137,7 @@ To debug JavaScript on Windows, you must first install the prerequisite applicat
1.Click**Yes** to install Windows Developer Mode package when prompted.
140
+
1.Select**Yes** to install Windows Developer Mode package when prompted.
129
141
1. Once Device Portal is enabled, **note the URL you will use to connect using localhost**. On most devices, it's `https://localhost:50080`
130
142
1. For debugging Power Apps / Field Service Mobile locally, you can continue with **Restrict to loopback connections only** enabled and **Authentication** disabled (otherwise you need to set a user password)
131
143
@@ -150,7 +162,7 @@ Use the **Run command** (shortcut is `Windows + R`) and use the following deep l
150
162
151
163
:::image type="content" source="media/devtools-configuration-for-windows.png" alt-text="Inspect in the DevTools screen":::
0 commit comments