Skip to content

Commit 414f289

Browse files
authored
Merge branch 'main' into alaug-patch-18
2 parents dd2a4f7 + 4e518a7 commit 414f289

File tree

649 files changed

+655
-758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

649 files changed

+655
-758
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Important update on GitHub Issues [select Open to know more]
4+
url: https://learn.microsoft.com/office/new-feedback
5+
about: We're transitioning our feedback experience away from GitHub Issues. For more information, select Open.

.openpublishing.redirection.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9034,6 +9034,31 @@
90349034
"source_path": "powerapps-docs/user/copilot-chat-in-webplayer.md",
90359035
"redirect_url": "/power-platform/responsible-ai-overview",
90369036
"redirect_document_id": "false"
9037+
},
9038+
{
9039+
"source_path": "powerapps-docs/maker/portals/control-portal-creation.md",
9040+
"redirect_url": "/power-pages/admin/control-site-creation",
9041+
"redirect_document_id": "false"
9042+
},
9043+
{
9044+
"source_path": "powerapps-docs/maker/portals/create-additional-portals.md",
9045+
"redirect_url": "/power-pages/admin/create-additional-sites",
9046+
"redirect_document_id": "false"
9047+
},
9048+
{
9049+
"source_path": "powerapps-docs/maker/portals/manage-existing-portals.md",
9050+
"redirect_url": "/power-pages/getting-started/create-manage",
9051+
"redirect_document_id": "false"
9052+
},
9053+
{
9054+
"source_path": "powerapps-docs/maker/portals/provision-portal-add-on.md",
9055+
"redirect_url": "/power-pages/admin/provision-add-on",
9056+
"redirect_document_id": "false"
9057+
},
9058+
{
9059+
"source_path": "powerapps-docs/user/[email protected]",
9060+
"redirect_url": "collaboration",
9061+
"redirect_document_id": "false"
90379062
}
90389063
]
90399064
}

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-WebApi/createRecord.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "createRecord (Client API reference) in model-driven apps| MicrosoftDocs"
33
description: Includes description and supported parameters for the createRecord method.
44
author: lancedMicrosoft
55
ms.author: lanced
6-
ms.date: 08/22/2022
6+
ms.date: 04/29/2024
77
ms.reviewer: jdaly
88
ms.topic: reference
99
applies_to: "Dynamics 365 (online)"
@@ -28,7 +28,7 @@ contributors:
2828
|`entityLogicalName`|String|Yes|Logical name of the table you want to create. For example: `account`.|
2929
|`data`|Object|Yes|A JSON object defining the columns and values for the new table record. See [Examples](#examples)|
3030
|`successCallback`|Function|No|A function to call when a record is created. See [Return Value](#return-value)|
31-
|`errorCallback`|Function|No|A function to call when the operation fails. An object with the following properties will be passed:<br /> - `errorCode`: Number. The error code.<br /> - `message`: String. An error message describing the issue.|
31+
|`errorCallback`|Function|No|A function to call when the operation fails. An object with the following properties is passed:<br /> - `errorCode`: Number. The error code.<br /> - `message`: String. An error message describing the issue.|
3232

3333

3434
## Return Value
@@ -74,9 +74,12 @@ Xrm.WebApi.createRecord("account", data).then(
7474
);
7575
```
7676

77+
> [!NOTE]
78+
> Creating records with a primary image is not supported for offline mode. Primary images can only be set with create in online mode. Other image columns cannot be set with create. [Learn more about Primary images](../../../../data-platform/image-column-data.md#primary-images)
79+
7780
### Create related table records along with the primary record
7881

79-
You can create tables related to each other by defining them as navigation properties values. This is known as *deep insert*. In this example, we will create a sample account record along with the primary contact record and an associated opportunity record.
82+
You can create tables related to each other by defining them as navigation properties values. This pattern is known as *deep insert*. In this example, we create a sample account record along with the primary contact record and an associated opportunity record.
8083

8184
> [!NOTE]
8285
> Creating related table records in a single create operation is not supported for offline mode.
@@ -123,7 +126,7 @@ To associate new table records to existing table records, set the value of singl
123126
> [!NOTE]
124127
> The names of single-valued navigation properties are not always the same as the `LogicalName` for the lookup attribute. You should make sure you are using the `Name` attribute value of the `NavigationProperty` element in the Web API $metadata service document. More information: [Web API Navigation Properties](../../../../data-platform/webapi/web-api-navigation-properties.md)
125128
126-
Here is code example:
129+
Here's code example:
127130

128131
The following example creates an account record, and associates it to an existing contact record to set the latter as the primary contact for the new account record:
129132

@@ -150,7 +153,7 @@ Xrm.WebApi.createRecord("account", data).then(
150153
**Deprecated method for mobile offline scenario**
151154

152155
> [!NOTE]
153-
> Instead of using `@odata.bind` annotation example above, the deprecated **lookup** object with case-sensitive properties (`logicalname` and `id`) is still supported for existing customizations. However, it is recommended to use `@odata.bind` annotation for both online and offline scenario instead of using this deprecated object.
156+
> Instead of using `@odata.bind` annotation example shown previously, the deprecated **lookup** object with case-sensitive properties (`logicalname` and `id`) is still supported for existing customizations. However, it is recommended to use `@odata.bind` annotation for both online and offline scenario instead of using this deprecated object.
154157
155158
The following example uses the deprecated method to create an account record, and associate it to an existing contact record to set the latter as the primary contact for the new account record from mobile clients when working in the offline mode:
156159

Lines changed: 79 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "Image web resources (model-driven apps) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3-
description: "Learn about using image web resources to make images available for use" # 115-145 characters including spaces. This abstract displays in the search result.
4-
author: sriharibs-msft
5-
ms.author: srihas
6-
ms.date: 04/01/2022
2+
title: "Image web resources (model-driven apps)"
3+
description: "Learn about using image web resources to make images available for use."
4+
author: chmoncay
5+
ms.author: chmoncay
6+
ms.date: 04/26/2024
77
ms.reviewer: jdaly
8-
ms.topic: "article"
8+
ms.topic: article
99
ms.subservice: mda-developer
1010
search.audienceType:
1111
- developer
@@ -17,43 +17,69 @@ contributors:
1717

1818
Use image web resources to make images available for use in model-driven apps.
1919

20-
There are 5 types of image web resources:
21-
* PNG Format
22-
* JPG Format
23-
* GIF Format
24-
* ICO Format
25-
* Vector Format (SVG)
20+
There are five types of image web resources:
21+
22+
- PNG Format
23+
- JPG Format
24+
- GIF Format
25+
- ICO (Windows icon format) Format
26+
- SVG (Scalable Vector Graphics) format
2627

2728
> [!NOTE]
2829
> Vector Format (SVG) web resources were added with the model-driven apps.
2930
30-
31-
<a name="BKMK_Capabilities"></a>
3231

33-
## Capabilities of image web resources
34-
With image web resources you can add images where you need them. Common uses include the following:
32+
## Capabilities of image web resources
33+
34+
With image web resources, you can add images where you need them. Common uses include:
3535

36-
- Custom table icons
37-
- Icons for custom ribbon controls and `SiteMap` subareas
38-
- Decorative graphics for forms and webpage web resources.
39-
- Background images that are used by CSS web resources.
36+
- Custom table icons.
37+
- Icons for custom ribbon controls and `SiteMap` subareas.
38+
- Decorative graphics for forms and webpage web resources.
39+
- Background images that are used by CSS web resources.
4040

4141
[!INCLUDE[cc-terminology](../data-platform/includes/cc-terminology.md)]
4242

43-
Use Vector Format (SVG) web resources for any icon presented in the application. Vector images are defined as Scalable Vector Graphics (SVG) an XML-based vector image format. The advantage of SVG over other image web resources is scale, smaller in size, and if the fill color is removed the model-driven app can control the icon color to avoid contrast issues. When defining the SVG or before uploading it into the web resource please remove any "fill color" attributes. We recommend using SVG over other image types like PNG and JPG. You can define one vector image and re-use it rather than provide multiple sizes of images. You will use these in with a new <xref:Microsoft.Xrm.Sdk.Metadata.EntityMetadata>.<xref:Microsoft.Xrm.Sdk.Metadata.EntityMetadata.IconVectorName> property to define the icon for a custom table instead of the `IconLargeName`, `IconMediumName`, or `IconSmallName` properties.
43+
## Working with Scalable Vector Graphics (SVG)
44+
45+
Use Vector Format (SVG) web resources for any icon presented in the application. Vector images are defined as Scalable Vector Graphics (SVG), an XML-based vector image format. We recommend using SVG over other image types like PNG and JPG because they have better accessibility, smaller in file size, and can scale with their container.
46+
47+
### Better accessibility
48+
49+
Model-driven apps can control the icon color to avoid contrast issues when SVG's don't contain hex values for colors. Using the [currentColor](https://developer.mozilla.org/docs/Web/CSS/color_value#currentcolor_keyword) can help ensure that the correct theme colors are used.
50+
51+
```html
52+
<path fill="currentColor" d="M16,0c-0,0-0-0.0-0-0.0v-0c0-0,0-0.0,0-0.0s0,0.0,0,0.0v0C00,0.0,00,0,00,0z"/>
53+
```
54+
55+
### Smaller file size
56+
57+
SVG files are typically smaller than raster type images, such as jpg or png.
58+
59+
### Scale with their container
60+
61+
You can reuse a single SVG rather than provide multiple sizes of images. Use SVG web resources in the [EntityMetadata.IconVectorName](xref:Microsoft.Xrm.Sdk.Metadata.EntityMetadata.IconVectorName) property to define the icon for a custom table instead of the `IconLargeName`, `IconMediumName`, or `IconSmallName` properties.
62+
63+
### Best practices
64+
65+
Ensure that a default size is set through the [svg](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element [width](https://developer.mozilla.org/docs/Web/SVG/Attribute/width), [height](https://developer.mozilla.org/docs/Web/SVG/Attribute/height), and [viewBox](https://developer.mozilla.org/docs/Web/SVG/Attribute/viewBox) attributes.
66+
67+
Where possible, remove any hard coded fill colors and don't use embedded style sheets and classes within the SVG. Embedded stylesheets could leak styles if other SVG files are referencing that same class. Use the style attribute to assign values instead. For example:
68+
69+
```html
70+
<path style="fill:#231F20;" d="M16,0c-0,0-0-0.0-0-0.0v-0c0-0,0-0.0,0-0.0s0,0.0,0,0.0v0C00,0.0,00,0,00,0z"/>
71+
```
4472

4573
> [!NOTE]
4674
> Vector Format (SVG) web resources are treated like the [Script (JScript)](./script-jscript-web-resources.md) web resources, and carry the same security risks as JavaScript web resources because SVG files allow JScript embedding.
47-
48-
<a name="BKMK_Limitations"></a>
4975
50-
## Limitations of image web resources
51-
Like all web resources, image web resources use the security context. Only licensed users who have the necessary privileges can access them.
52-
53-
54-
<a name="BKMK_ReferenceFromWebPageWebResource"></a>
55-
## Reference an image web resource from a webpage web resource
56-
All web resources can use relative URLs to reference each other. In the following example, for the webpage (HTML) web resource new_/content/contentpage.htm to reference the image web resource new_/Images/image1.png, add the following HTML code to new_/content/contentpage.htm:
76+
## Limitations of image web resources
77+
78+
Image web resources use the security context like all web resources. Only licensed users who have the necessary privileges can access them.
79+
80+
## Reference an image web resource from a webpage web resource
81+
82+
All web resources can use relative URLs to reference each other. In the following example, for the webpage (HTML) web resource new_/content/contentpage.htm to reference the image web resource new_/Images/image1.png, add the following HTML code to new_/content/contentpage.htm:
5783

5884
```html
5985
<img src="../Images/image1.png" />
@@ -62,45 +88,32 @@ Like all web resources, image web resources use the security context. Only licen
6288

6389
## Reference an image web resource from a form
6490

65-
#### Add an image to a form
66-
67-
1. Navigate to the form editor for a table.
68-
69-
2. Select where you want to add the image in the form.
70-
71-
3. On the **Insert tab**, select **Web Resource**.
72-
73-
4. On the **General** tab, select the web resource image that you want to add.
74-
75-
5. Specify a name for the web resource. You can also specify a label and alternative text.
91+
### Add an image to a form
7692

77-
6. On the **Formatting** tab, you can define:
93+
1. Navigate to the form editor for a table.
94+
1. Select where you want to add the image in the form.
95+
1. On the **Insert tab**, select **Web Resource**.
96+
1. On the **General** tab, select the web resource image that you want to add.
97+
1. Specify a name for the web resource. You can also specify a label and alternative text.
98+
1. On the **Formatting** tab, you can define:
7899

79-
- The number of columns the images should use.
80-
81-
- The number of rows the images should use, or if it should automatically expand to use available space.
82-
83-
- The size of the image using the following options:
100+
- The number of columns the images should use.
101+
- The number of rows the images should use, or if it should automatically expand to use available space.
102+
- The size of the image using the following options:
84103

85104
- **Stretch to fit**
86-
87-
- **Stretch to fit (maintain aspect ratio)**
88-
105+
- **Stretch to fit (maintain aspect ratio)**
89106
- **Original**
90-
91107
- **Specific**
92108

93-
- If you select "Specific," you can enter the desired height and width in pixels.
94-
95-
7. Select **OK**.
109+
- If you select "Specific," you can enter the desired height and width in pixels.
96110

97-
8. You must save your changes and publish the form before users can see the image in the form.
98-
99-
<a name="BKMK_ReferenceWithWebResourcedirective"></a>
111+
1. Select **OK**.
112+
1. You must save your changes and publish the form before users can see the image in the form.
100113

101114
## Reference an image web resource from a ribbon element or from the Site Map subarea
102115

103-
Use the `$webresource:` directive to specify a web resource image to use as an icon in the ribbon or in the application navigation using Site Map. The following sample shows how to specify icons for a button in the ribbon.
116+
Use the `$webresource:` directive to specify a web resource image to use as an icon in the ribbon or in the application navigation using Site Map. The following sample shows how to specify icons for a button in the ribbon.
104117

105118
```xml
106119
<Button Id="MyISV.opportunity.form.actions.FlyoutAnchor.Button.1" Image16by16="$webresource:new_/icons/oneIcon16.png" Image32by32="$webresource:new_/icons/oneIcon32.png"/>
@@ -109,13 +122,14 @@ Use the `$webresource:` directive to specify a web resource image to use as an i
109122
> [!NOTE]
110123
> Using the `$webresource:` directive adds a solution dependency that prevents the referenced image web resources from being deleted as long as they are used by another solution component.
111124
112-
### See also
113-
[Web resources](web-resources.md)
114-
[Using Web Page (HTML) web resources](webpage-html-web-resources.md)
115-
[Using Style Sheet (CSS) web resources](css-web-resources.md)
116-
[Using JavaScript web resources](script-jscript-web-resources.md)
117-
[Using Data (XML) web resources](data-xml-web-resources.md)
118-
[Using Stylesheet (XSL) web resources](stylesheet-xsl-web-resources.md)
125+
### See also
126+
127+
[Web resources](web-resources.md)
128+
[Using Web Page (HTML) web resources](webpage-html-web-resources.md)
129+
[Using Style Sheet (CSS) web resources](css-web-resources.md)
130+
[Using JavaScript web resources](script-jscript-web-resources.md)
131+
[Using Data (XML) web resources](data-xml-web-resources.md)
132+
[Using Stylesheet (XSL) web resources](stylesheet-xsl-web-resources.md)
119133

120134

121135
[!INCLUDE[footer-include](../../includes/footer-banner.md)]

powerapps-docs/docfx.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
"marycc",
4343
"tinaburden",
4444
"almostdunh",
45-
"AshleyWoodruff"
45+
"AshleyWoodruff",
46+
"kimberleybrown",
47+
"nathlaroche"
4648
],
4749
"breadcrumb_path": "breadcrumb/toc.yml",
4850
"ms.suite": "office",

powerapps-docs/maker/TOC.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@
245245
href: search.md
246246
- name: Get help from a virtual agent
247247
href: ./common/virtual-agent.md
248+
- name: Copilot in Power Apps overview
249+
href: ./canvas-apps/ai-overview.md
248250
- name: Canvas apps
249251
items:
250252
- name: Canvas apps
@@ -286,10 +288,8 @@
286288
- name: Troubleshoot common errors
287289
href: ./canvas-apps/figma/common-errors.md
288290
displayName: Troubleshoot common errors when creating app from Figma
289-
- name: Create an app using AI Copilot
291+
- name: Create an app using Copilot
290292
items:
291-
- name: Overview
292-
href: ./canvas-apps/ai-overview.md
293293
- name: Create an app from conversations
294294
href: ./canvas-apps/ai-conversations-create-app.md
295295
- name: Continue editing your app with Copilot (preview)
@@ -1851,16 +1851,6 @@
18511851
items:
18521852
- name: What is Power Pages?
18531853
href: /power-pages/introduction
1854-
- name: Create and manage sites
1855-
items:
1856-
- name: Create a site using the older add-on
1857-
href: ./portals/provision-portal-add-on.md
1858-
- name: Create additional sites in an environment
1859-
href: ./portals/create-additional-portals.md
1860-
- name: Control site creation in a tenant
1861-
href: ./portals/control-portal-creation.md
1862-
- name: Manage existing sites
1863-
href: ./portals/manage-existing-portals.md
18641854
- name: List OData feeds
18651855
href: ./portals/configure/list-odata-feeds.md
18661856
- name: Create custom Portal Management app
@@ -2051,6 +2041,10 @@
20512041
href: ./data-platform/lowcode-plug-ins-examples.md
20522042
- name: Low-code plug-ins Power Fx
20532043
href: ./data-platform/low-code-plug-ins-powerfx.md
2044+
- name: Create low-code plug-ins to use with a copilot
2045+
href: ./data-platform/low-code-plugins-copilot-studio.md
2046+
- name: Low-code plug-ins tips and known issues
2047+
href: ./data-platform/low-code-plug-ins-tips.md
20542048
- name: Work with actions
20552049
items:
20562050
- name: Use actions

0 commit comments

Comments
 (0)