Skip to content

Commit cd6c271

Browse files
authored
Merge pull request MicrosoftDocs#1385 from tony-xia/update-names
Update method name and variable name
2 parents 70efbeb + 440626b commit cd6c271

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

powerapps-docs/developer/common-data-service/org-service/metadata-attributemetadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Console.WriteLine("Created {0} with the value of {1}.",
502502

503503
This sample code shows how to change the order of options in a local option set. The following sample retrieves a custom <xref:Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata> attribute and changes the order of the original options using the [OrderBy](https://msdn.microsoft.com/library/system.linq.enumerable.orderby.aspx)**LINQ** function to sort items in ascending order by the label text. Then it uses <xref:Microsoft.Xrm.Sdk.Messages.OrderOptionRequest> to set the new order of the options for the attribute.
504504

505-
Use the [OrderByDecending](https://msdn.microsoft.com/library/system.linq.enumerable.orderbydescending.aspx) linq function to order the items in descending order.
505+
Use the [OrderByDescending](https://msdn.microsoft.com/library/system.linq.enumerable.orderbydescending.aspx) linq function to order the items in descending order.
506506

507507
```csharp
508508
// Use the RetrieveAttributeRequest message to retrieve

powerapps-docs/developer/common-data-service/org-service/metadata-retrieve-detect-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ The classes in the <xref:Microsoft.Xrm.Sdk.Metadata.Query> namespace and the <xr
141141
EntityFilter.Conditions.Add(new MetadataConditionExpression("IsIntersect", MetadataConditionOperator.Equals, false));
142142
EntityFilter.Conditions.Add(new MetadataConditionExpression("OwnershipType", MetadataConditionOperator.Equals, OwnershipTypes.UserOwned));
143143
EntityFilter.Conditions.Add(new MetadataConditionExpression("SchemaName", MetadataConditionOperator.NotIn, excludedEntities));
144-
MetadataConditionExpression isVisibileInMobileTrue = new MetadataConditionExpression("IsVisibleInMobile", MetadataConditionOperator.Equals, true);
145-
EntityFilter.Conditions.Add(isVisibileInMobileTrue);
144+
MetadataConditionExpression isVisibleInMobileTrue = new MetadataConditionExpression("IsVisibleInMobile", MetadataConditionOperator.Equals, true);
145+
EntityFilter.Conditions.Add(isVisibleInMobileTrue);
146146
```
147147

148148
### Specify the properties you want

0 commit comments

Comments
 (0)