СК
Size: a a a
СК
A
АО
1
АО
VH
KK
KK
KK
VH
KS
let
result = fnValueWaitFor(
(iteration) =>
let
data = Json.FromValue([StatisticsSessionId = StatisticsId]),
headers = [
#"accept" = "*/*",
#"ScoutAuthorization" = AuthorizationId,
#"Content-Type" = "application/json"
],
web = Web.Contents(
"url",
[
Content = data,
Headers = headers,
Timeout = #duration(0, 0, 0, 10),
ManualStatusHandling = {404, 400}
]
),
buffered = Binary.Buffer(web),
status = Json.Document(buffered)[ChunkInfo][Status][Value],
actual_result = if status = "Ok" then Json.Document(buffered) else null
in
actual_result,
(iteration) => #duration(0, 0, 0, 1),
5
)
in
result
KK
KK
KK
DS
VH
VH
VH
DS
DS