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: docs/declarative-customization/formatting-syntax-reference.md
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -923,16 +923,44 @@ The Approval Status field object has the following property (with example value)
923
923
```JSON
924
924
{
925
925
"displayValue": "Approved",
926
+
"numeric": 0
926
927
}
927
928
```
928
929
`displayValue` is localized string of the approval status.
929
930
930
-
`@currentField` or `[$__ModerationStatus]` will resolve to the internal code -
931
+
`@currentField` or `[$__ModerationStatus]`will also internally map to the following internal numeric value -
932
+
```
931
933
- 0 : Approved
932
934
- 1 : Denied
933
935
- 2 : Pending
934
936
- 3 : Draft
935
937
- 4 : Scheduled
938
+
```
939
+
`[$_ModerationStatus]` field supports comparisions to both strings as well as the numeric value. The numeric comparisions work across locales and languages, and that will be the recommended way for this field.
940
+
941
+
The following expressions evaluate to the output on the right, for when the status is `Pending`:
0 commit comments