Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Block output vs the output sent to the API

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Ionut_Dumitrascu

Block output vs the output sent to the API

Last Update:

Sep 30, 2021 2:40:55 AM

Updated By:

Ionut_Dumitrascu

Created date:

May 20, 2021 8:39:26 AM

When inspecting the output of a create/update block in an automation, you see a JSON representation of the object that needs to be created/updated. However, this JSON representation is bound to the way that the block is configured, and can differ from the JSON that is sent to the API. This can happen when custom code is applied right before the JSON is sent to an API, and it can modify the structure of the JSON. 

Example:
1. JSON object that is seen when checking a block:

Ionut_Dumitrascu_3-1621512302038.png

2. JSON object that is sent to the API for the same block:

Ionut_Dumitrascu_4-1621512360543.png

As you can see, the field 'extra_values" which contains a nested object is not used, instead, the nested object is merged with the rest of the JSON. The JSON representation from the block can differ from the JSON expected by the API, so it should not be used as validation.

Tags (1)
Version history
Last update:
‎2021-09-30 02:40 AM
Updated by: