Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello. Is it possible to create Mail connection on a different tenant to be used in an automation?
Seems that "Path" value=''automation-connections" is not allowed, despite the fact that there is such an api.
I can see properties using the api request
Is there a way to create this using automations?
Hi @Elena_Z
This should work, although we haven't created a block for this yet since we don't have all the connectorId values documented 🙂
This block works in my environment (copy the code and paste into your workspace):
{"blocks":[{"id":"2AC0F328-4847-4F84-B484-CC4F45B07142","type":"EndpointBlock","disabled":false,"name":"rawAPIRequest","displayName":"Qlik Platform Operations - Raw API Request","comment":"","childId":null,"inputs":[{"id":"87305570-d714-11ee-af8b-f5926c2eb6c3","value":"aqh.uk.qlikcloud.com","type":"string","structure":[]},{"id":"873b1be0-d714-11ee-ad63-0168496c4572","value":"automation-connections","type":"string","structure":[]},{"id":"874397c0-d714-11ee-a2d1-656d2483355d","value":"874c1df0-d714-11ee-b890-9d6b1bc6cca5","type":"select","displayValue":"POST","structure":[]},{"id":"874e7410-d714-11ee-821a-114712a24d48","value":"{\n\"connectorId\": \"05407a80-ccfd-11eb-b098-7140f6ac27f4\",\n\"name\": \"This is a mail account set up by a robot2\",\n\"spaceId\": \"673f3ac6c5fd719c0268e8f5\",\n\"params\": [\n{\n\"name\": \"Host\",\n\"value\": \"hostvalue\"\n},\n{\n\"name\": \"Port\",\n\"value\": \"123456789\"\n},\n{\n\"name\": \"Security\",\n\"value\": \"starttls\"\n},\n{\n\"name\": \"Sender_Email_Address\",\n\"value\": \"me@me.com\"\n},\n{\n\"name\": \"Username\",\n\"value\": null\n},\n{\n\"name\": \"Password\",\n\"value\": \"blah\"\n}\n]\n}","type":"string","structure":[]},{"id":"87573590-d714-11ee-9e77-450c95fd4720","value":null,"type":"object","mode":"keyValue","structure":[]}],"settings":[{"id":"datasource","value":"cccc14a0-d233-11ed-b0d0-33e7e8bc635b","type":"select","structure":[]},{"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":-380,"y":82,"datasourcetype_guid":"c7e48240-e0f2-11ec-ada1-d5ef75014b77","endpoint_guid":"871859b0-d714-11ee-8600-8736e9a8ec8b","endpoint_role":"get"}],"variables":[]}
Or this body:
{
"connectorId": "05407a80-ccfd-11eb-b098-7140f6ac27f4",
"name": "This is a mail account set up by a robot",
"spaceId": "673f3ac6c5fd719c0268e8f5",
"params": [
{
"name": "Host",
"value": "hostvalue"
},
{
"name": "Port",
"value": "123456789"
},
{
"name": "Security",
"value": "starttls"
},
{
"name": "Sender_Email_Address",
"value": "me@me.com"
},
{
"name": "Username",
"value": null
},
{
"name": "Password",
"value": "blah"
}
]
}
Hi @Elena_Z
This should work, although we haven't created a block for this yet since we don't have all the connectorId values documented 🙂
This block works in my environment (copy the code and paste into your workspace):
{"blocks":[{"id":"2AC0F328-4847-4F84-B484-CC4F45B07142","type":"EndpointBlock","disabled":false,"name":"rawAPIRequest","displayName":"Qlik Platform Operations - Raw API Request","comment":"","childId":null,"inputs":[{"id":"87305570-d714-11ee-af8b-f5926c2eb6c3","value":"aqh.uk.qlikcloud.com","type":"string","structure":[]},{"id":"873b1be0-d714-11ee-ad63-0168496c4572","value":"automation-connections","type":"string","structure":[]},{"id":"874397c0-d714-11ee-a2d1-656d2483355d","value":"874c1df0-d714-11ee-b890-9d6b1bc6cca5","type":"select","displayValue":"POST","structure":[]},{"id":"874e7410-d714-11ee-821a-114712a24d48","value":"{\n\"connectorId\": \"05407a80-ccfd-11eb-b098-7140f6ac27f4\",\n\"name\": \"This is a mail account set up by a robot2\",\n\"spaceId\": \"673f3ac6c5fd719c0268e8f5\",\n\"params\": [\n{\n\"name\": \"Host\",\n\"value\": \"hostvalue\"\n},\n{\n\"name\": \"Port\",\n\"value\": \"123456789\"\n},\n{\n\"name\": \"Security\",\n\"value\": \"starttls\"\n},\n{\n\"name\": \"Sender_Email_Address\",\n\"value\": \"me@me.com\"\n},\n{\n\"name\": \"Username\",\n\"value\": null\n},\n{\n\"name\": \"Password\",\n\"value\": \"blah\"\n}\n]\n}","type":"string","structure":[]},{"id":"87573590-d714-11ee-9e77-450c95fd4720","value":null,"type":"object","mode":"keyValue","structure":[]}],"settings":[{"id":"datasource","value":"cccc14a0-d233-11ed-b0d0-33e7e8bc635b","type":"select","structure":[]},{"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":-380,"y":82,"datasourcetype_guid":"c7e48240-e0f2-11ec-ada1-d5ef75014b77","endpoint_guid":"871859b0-d714-11ee-8600-8736e9a8ec8b","endpoint_role":"get"}],"variables":[]}
Or this body:
{
"connectorId": "05407a80-ccfd-11eb-b098-7140f6ac27f4",
"name": "This is a mail account set up by a robot",
"spaceId": "673f3ac6c5fd719c0268e8f5",
"params": [
{
"name": "Host",
"value": "hostvalue"
},
{
"name": "Port",
"value": "123456789"
},
{
"name": "Security",
"value": "starttls"
},
{
"name": "Sender_Email_Address",
"value": "me@me.com"
},
{
"name": "Username",
"value": null
},
{
"name": "Password",
"value": "blah"
}
]
}
Hello @DaveChannon . This works for me. Thanks a lot for your help