When
Last updated
Was this helpful?
Was this helpful?
provider: DATA_PROVIDER_REST
url: https://graph.microsoft.com/v1.0/me/drive/root/children
method: GET
# Determine conditions when the main function executes.
when: =@ctx.queries.current-record ? false:true
useLocalCall: true
parameters:
$top:
location: query
type: number
required: false
accessToken:
location: header
type: microsoft
value: jigx.microsoft.oauth
required: true
# In the function definition.
queries:
current-record:
statement: SELECT * FROM [local-countries] WHERE [id] = @id
parameters:
id: =@.parameters.countryId
existing-countries:
statement: SELECT * FROM [local-countries]
jsonColumns: =@ctx.entityerror:
- title: Server is temporarily unavailable
description: |
The server is currently unavailable, please try again in a few minutes.
details: =@ctx.response.body
icon: on-error-sad
notification: true
operations:
- type: operation.delete-insert
table: =@ctx.entity & "_error"
# Condition that determines when a 503 custom error message executes.
when: =@ctx.response.status = 503