This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
qmi-cloud/server/training/workspaces/qlikws-main.json
Manuel Romero 835cab0214 fixes and logs
2024-04-10 11:18:20 +02:00

1 line
9.7 KiB
JSON

{"blocks":[{"id":"55EA235B-4712-4994-9DF9-21FD50A3D7AD","type":"StartBlock","disabled":false,"name":"Start","displayName":"Start","comment":"","childId":"DE72EA9B-238B-457B-B5AF-5E5ADF0D57D3","inputs":[{"id":"run_mode","value":"triggered","type":"select","structure":{}},{"id":"async","value":"no","type":"select","structure":{}},{"id":"","value":null,"type":"custom","structure":{}}],"settings":[{"id":"automations_censor_data","value":false,"type":"checkbox","structure":{}}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":0},{"id":"A053E29A-8BCD-4AE6-9F99-18A7DBFF59D6","type":"EndpointBlock","disabled":false,"name":"searchUsers","displayName":"Qlik Cloud Services - Search Users","comment":"","childId":"C6795AB0-E4CA-489E-8E41-9007993E9C8D","inputs":[{"id":"b134f4e0-f832-11ec-858b-9feea72c382e","value":"email,name,status","type":"string","structure":[]},{"id":"b14f3e50-f832-11ec-9221-d7f5e04021c1","value":null,"type":"select","structure":[]},{"id":"43b94790-f834-11ec-95c2-1b59e214d993","value":"(status eq \"active\" or status eq \"invited\") and (email eq \"{$.Email}\")","type":"string","structure":[]}],"settings":[{"id":"maxitemcount","value":"","type":"string","structure":[]},{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":1000,"loopBlockId":null,"datasourcetype_guid":"61a87510-c7a3-11ea-95da-0fb0c241e75c","endpoint_guid":"b0d2e830-f832-11ec-b448-6ba082700f84","endpoint_role":"search"},{"id":"B451F66C-E1D2-42DB-87DB-8FEA37800B98","type":"VariableBlock","disabled":false,"name":"Email","displayName":"Variable - Email","comment":"","childId":"8E6E364D-C838-4349-BDFA-ED891FA4FBFA","inputs":[],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":240,"variableGuid":"2709355D-3B3E-4B04-B31D-8CCA3E2663CB","operations":[{"id":"set_value","key":"F83168AF-E6C9-489C-A60A-DEBA8E164820","name":"Set value of { variable }","value":"{$.Start.email}"}]},{"id":"C6795AB0-E4CA-489E-8E41-9007993E9C8D","type":"IfElseBlock","disabled":false,"name":"condition","displayName":"Condition","comment":"","childId":"2658C9AE-C1D8-4D1D-A214-713543E6D05F","inputs":[{"id":"conditions","value":{"mode":"all","conditions":[{"input1":"{count: {$.searchUsers}}","input2":"0","operator":">"}]},"type":"custom","structure":[]}],"settings":[],"collapsed":[{"name":"yes","isCollapsed":false},{"name":"no","isCollapsed":false}],"x":0,"y":1560,"childTrueId":"FC8F8877-4B12-4818-B0E1-C0EEF00C0516","childFalseId":"AB922138-BDA3-4E0F-8863-01069D5EC2C3"},{"id":"AB922138-BDA3-4E0F-8863-01069D5EC2C3","type":"CallUrlBlock","disabled":false,"name":"callURL","displayName":"Call URL","comment":"","childId":"128D71F6-9F1E-4BE8-9889-204D9D3CF0A5","inputs":[{"id":"url","value":"https://{$.TENANTHOST}/api/v1/invite","type":"string","structure":[]},{"id":"method","value":"POST","type":"select","displayValue":"POST","structure":[]},{"id":"timeout","value":"","type":"string","structure":[]},{"id":"params","value":"{\n \"invitees\": [{\"email\":\"{ $.Email }\"}]\n}","type":"object","mode":"raw","structure":[]},{"id":"headers","value":[{"key":"Authorization","value":"Bearer {$.APIKEY}"},{"key":"Content-Type","value":"application/json"}],"type":"object","mode":"keyValue","structure":[]},{"id":"encoding","value":"","type":"string","structure":[]}],"settings":[{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"full_response","value":null,"type":"checkbox","structure":[]},{"id":"capitalize_headers","value":true,"type":"checkbox","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":120,"y":1000},{"id":"84EB3E8F-F46F-4DDC-8134-172072A05ECD","type":"EndpointBlock","disabled":false,"name":"getCurrentTenantInfo","displayName":"Qlik Cloud Services - Get Current Tenant Info","comment":"","childId":"495AEE23-ECB3-4314-BDF0-D91D85C4A44B","inputs":[],"settings":[{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"cache","value":"0","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":203,"y":448,"datasourcetype_guid":"61a87510-c7a3-11ea-95da-0fb0c241e75c","endpoint_guid":"55051480-cb86-11ec-b746-892c1d04114e","endpoint_role":"get"},{"id":"DE72EA9B-238B-457B-B5AF-5E5ADF0D57D3","type":"VariableBlock","disabled":false,"name":"APIKEY","displayName":"Variable - APIKEY","comment":"","childId":"B451F66C-E1D2-42DB-87DB-8FEA37800B98","inputs":[],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":203,"y":328,"variableGuid":"F2AAA422-D772-4F4F-ACDB-9FBC789387D8","operations":[{"id":"set_value","key":"4150DA95-BF96-4F0C-86C3-CD4613DBEC19","name":"Set value of { variable }","value":"{$.Start.apiKey}"}]},{"id":"128D71F6-9F1E-4BE8-9889-204D9D3CF0A5","type":"VariableBlock","disabled":false,"name":"USER","displayName":"Variable - USER","comment":"","childId":null,"inputs":[],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":120,"y":2160,"variableGuid":"C46395AA-FE5E-487F-B721-0B9AB3FD0061","operations":[{"id":"set","key":"CE1AEC5B-DB72-42DE-AE4F-0DF67567E41D","name":"Set { variable } equal to object ","value":"{ $.callURL.results }"}]},{"id":"2658C9AE-C1D8-4D1D-A214-713543E6D05F","type":"ShowBlock","disabled":false,"name":"output","displayName":"Output","comment":"","childId":null,"inputs":[{"id":"input","value":"{ $.USER }","type":"string","structure":[]}],"settings":[{"id":"display_mode","value":"add","type":"select","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-575,"y":2043},{"id":"ADE6EFA6-0F1E-4A4E-BF50-3A04FF45A620","type":"VariableBlock","disabled":false,"name":"USER","displayName":"Variable - USER","comment":"","childId":null,"inputs":[],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-311,"y":632,"variableGuid":"C46395AA-FE5E-487F-B721-0B9AB3FD0061","operations":[{"id":"set","key":"78DFBD62-58A1-4920-8A4A-FC5B3322E367","name":"Set { variable } equal to object ","value":"{$.searchUsers[0]}"}]},{"id":"8E6E364D-C838-4349-BDFA-ED891FA4FBFA","type":"UpdateJobBlock","disabled":false,"name":"updateRunTitle","displayName":"Update Run Title","comment":"","childId":"84EB3E8F-F46F-4DDC-8134-172072A05ECD","inputs":[{"id":"title","value":"User: {$.Email}","type":"string","structure":[]}],"settings":[{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-316,"y":274},{"id":"FC8F8877-4B12-4818-B0E1-C0EEF00C0516","type":"CallUrlBlock","disabled":false,"name":"callURL2","displayName":"Call URL 2","comment":"","childId":"ADE6EFA6-0F1E-4A4E-BF50-3A04FF45A620","inputs":[{"id":"url","value":"https://{ $.TENANTHOST }/api/v1/invite","type":"string","structure":[]},{"id":"method","value":"POST","type":"select","displayValue":"POST","structure":[]},{"id":"timeout","value":"","type":"string","structure":[]},{"id":"params","value":"{\n \"invitees\": [{\"email\":\"{$.Email}\", \"resend\":true}]\n}","type":"object","mode":"raw","structure":[]},{"id":"headers","value":[{"key":"Authorization","value":"Bearer {$.APIKEY}"},{"key":"Content-Type","value":"application/json"}],"type":"object","mode":"keyValue","structure":[]},{"id":"encoding","value":"","type":"string","structure":[]}],"settings":[{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"full_response","value":null,"type":"checkbox","structure":[]},{"id":"capitalize_headers","value":true,"type":"checkbox","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":370,"y":1000},{"id":"495AEE23-ECB3-4314-BDF0-D91D85C4A44B","type":"IfElseBlock","disabled":false,"name":"condition2","displayName":"Condition 2","comment":"","childId":"A053E29A-8BCD-4AE6-9F99-18A7DBFF59D6","inputs":[{"id":"conditions","value":{"mode":"all","conditions":[{"input1":"{count: {$.getCurrentTenantInfo.hostnames}}","operator":">","input2":"1"}]},"type":"custom","structure":{}}],"settings":[],"collapsed":[{"name":"both","isCollapsed":false},{"name":"yes","isCollapsed":false},{"name":"no","isCollapsed":false}],"x":-330,"y":510,"childTrueId":"B72FD181-5E8A-47AF-BD23-F6BA414C52A0","childFalseId":"E0745ED4-2F58-4545-AEB2-05AD29787EDE"},{"id":"B72FD181-5E8A-47AF-BD23-F6BA414C52A0","type":"VariableBlock","disabled":false,"name":"TENANTHOST","displayName":"Variable - TENANTHOST","comment":"","childId":null,"inputs":[],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":120,"y":680,"variableGuid":"86B4AF3F-C43F-4BD6-A6A9-64CD02518B45","operations":[{"key":"09F40DA0-DE0C-43A8-8584-1E620F9C7535","id":"set_value","name":"Set value of { variable }","value":"{$.getCurrentTenantInfo.hostnames[1]}"}]},{"id":"E0745ED4-2F58-4545-AEB2-05AD29787EDE","type":"VariableBlock","disabled":false,"name":"TENANTHOST","displayName":"Variable - TENANTHOST","comment":"","childId":null,"inputs":[],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":370,"y":680,"variableGuid":"86B4AF3F-C43F-4BD6-A6A9-64CD02518B45","operations":[{"key":"216592E7-A646-40FA-AD50-96A5555BB9EF","id":"set_value","name":"Set value of { variable }","value":"{$.getCurrentTenantInfo.hostnames[0]}"}]}],"variables":[{"guid":"2709355D-3B3E-4B04-B31D-8CCA3E2663CB","name":"Email","type":"string"},{"guid":"044ACF05-8A99-4D28-A168-965B67B3ADE1","name":"TARGETSPACEID","type":"string"},{"guid":"F2AAA422-D772-4F4F-ACDB-9FBC789387D8","name":"APIKEY","type":"string"},{"guid":"C46395AA-FE5E-487F-B721-0B9AB3FD0061","name":"USER","type":"object"},{"guid":"86B4AF3F-C43F-4BD6-A6A9-64CD02518B45","name":"TENANTHOST","type":"string"}]}