Skip to content

Commit 2f49e89

Browse files
Live publish for 25 June 2024.
2 parents 8aff1d0 + 664e9d9 commit 2f49e89

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

powerapps-docs/developer/component-framework/reference/utility/hasentityprivilege.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: hasEntityPrivilege (Power Apps component framework API reference) | Micro
33
description: Returns if the user has privilege for specific table.
44
ms.author: hemantg
55
author: HemantGaur
6-
ms.date: 05/27/2022
6+
ms.date: 06/25/2024
77
ms.reviewer: jdaly
88
ms.topic: reference
99
ms.subservice: pcf
@@ -35,6 +35,15 @@ Model-driven apps
3535

3636
**Type**: `boolean`
3737

38+
## Remarks
39+
40+
This function might return false if the table metadata isn't locally cached. To ensure the table metadata is available in the local cache, call and await on [getEntityMetadata](getentitymetadata.md) before calling `hasEntityPrivilege`.
41+
42+
```TypeScript
43+
await context.utils.getEntityMetadata(entityTypeName);
44+
context.utils.hasEntityPrivilege(entityTypeName, privilegeType, privilegeDepth);
45+
```
46+
3847
### Related articles
3948

4049
[Utility](../utility.md)<br/>

0 commit comments

Comments
 (0)