Closed
DX API for “Run visibility condition on client”
Can anybody provide what is in the JSON response when Visibility of a field is set to "Condition (when)" and “Run visibility condition on client” is checked?
***Edited by Moderator Kayla to update Platform Capability tags****
***Edited by Moderator Marissa to update Support Case Details***
To see attachments, please log in.
@PAULTANG
The 'Run visibility condition on client' or 'Run required condition on client' options usually shows up when you select 'Condition (expression)' on a field and not for Condition (when). This option is to reduce the server trips or server calls and hence they don't be part of the request payload. Copied response field configuration-specific metadata from the response payload.
If you are using DX API v1, use WHEN rules and on-change refresh actions.
For DX API version 2, use VIEW rules and edit the VIEW rule from app studio Configure View option to include expressions/condition(Custom condition option from the VIEW rule configuration). Sample screenshots with request/response payload below. Notice the configurations for condition(when), condition(expression), and context data summary in the response below.
"visibility": "@W IsIncident_c11n"
"visibility": "@E .AdditionalInfoNeeded == 'Yes'"
"summary_of_when_conditions__": {
"IsIncident_c11n": false
}