Skip to main content

Custom Connector

The MaptaskrPowerMapsFlowHelper custom connector is a C# script used to help automated flows process and query the offline tile servers required for Maptaskr to function. Additionally, it contains helper functions for other Maptaskr Power Maps flows to reduce flow complexity and process JSON objects (which can be very difficult to process in Flow alone).

It does not contain any authentication requirements or URLs, and will only query the offline tile servers as specified in the offline configuration for a layer.

{"swagger":"2.0","info":{"title":"MaptaskrOfflineLayerRefresh","description":"Maptaskr Power Maps Flow Helpers","version":"1.0"},"host":"home","basePath":"/","schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/update-auth-request":{"post":{"summary":"UpdateAuthRequest","description":"UpdateAuthRequest","operationId":"UpdateAuthRequest","parameters":[{"name":"body","in":"body","required":true,"schema":{"type":"object","properties":{"authResponse":{"type":"string"},"authAdditionalRequestHeader":{"type":"string"},"authAdditionalUrlParameters":{"type":"string"},"offlineRequestHeaders":{"type":"string"},"offlineRequestQueryParameters":{"type":"string"}}}}],"responses":{"default":{"description":"Success","schema":{"type":"object"}}}}},"/update-offline-row":{"post":{"summary":"UpdateOfflineRow","description":"UpdateOfflineRow","operationId":"UpdateOfflineRow","parameters":[{"name":"body","in":"body","required":true,"schema":{"type":"object","properties":{"authResponse":{"type":"string"},"authAdditionalRequestHeader":{"type":"string"},"authAdditionalUrlParameters":{"type":"string"},"offlineRequestBody":{"type":"string"},"offlineRequestBodyType":{"type":"string"},"offlineRequestHeaders":{"type":"string"},"offlineRequestQueryParams":{"type":"string"},"offlineRequestQueryType":{"type":"string"},"offlineRequestUrl":{"type":"string"},"offlineRegionLastRefresh":{"type":"string"},"offlineRegionRefreshInterval":{"type":"string"}}}}],"responses":{"default":{"description":"Success","schema":{"type":"object"}}}}},"/cleanzombieshapes":{"post":{"responses":{"default":{"description":"default","schema":{}}},"summary":"CleanZombieShapes","description":"CleanZombieShapes","operationId":"CleanZombieShapes","parameters":[]}}},"definitions":{},"parameters":{},"responses":{},"securityDefinitions":{},"security":[],"tags":[]}

When creating a custom connector, the form requires the Host field to be completed. However, for Maptaskr Power Maps, this field does not serve a functional purpose and is only used as an internal reference to specific functions.

The following placeholder URLs are used to map to internal functions within the custom connector:

Host NameFunction Purpose
https://maptaskr-power-maps-flow-helpers/cleanupShapesCleans up orphaned map shapes that may be created when a user starts but does not complete a form submission
https://maptaskr-power-maps-flow-helpers/updateAuthProfilesUpdates authentication tokens for your map layers
https://maptaskr-power-maps-flow-helpers/offlineCacheRefreshUpdates offline data rows, which are then synced to offline mobile profiles