Actions
Layer actions can be configured for individual layers or applied to all layers. Follow these steps for each action type:
URLNavigate
Description: Navigate to a custom URL. Fields:
URL: The URL to navigate to (e.g.,https://google.com).OpenInNewWindow: Whether to open in a new window (e.g.,checked). Example:
OpenD365Modal
This action is only available in Dynamics 365
Description: Open a Dynamics 365 form. Fields:
entityName: Name of the entity (e.g.,account).entityId: ID of the entity (leave blank to open the create form).formPosition: Position of the form (e.g.,center).formId: ID of the form (leave blank for the default form).formProps: Additional properties (e.g.,{"key":"{{value}}"}). Example:
Need to populate a Dynamics lookup field (ID + display name)? See the LOOKUP example: Resolving a Contact fullname.
ExecuteJs
Description: Execute custom JavaScript functions. Fields:
-
functionName: Name of the JavaScript function (e.g.,myFunction). -
functionParameters: Parameters to pass, wrapped in double curly braces (e.g.,{{dynamicVal}}). Example:
warningWhen using the ExecuteJS action type, ensure that the JavaScript function is defined in the
globalThiscontext. This allows Maptaskr Power Maps to locate and execute the function seamlessly. For example, you can define your function asglobalThis.myFunction = function() { ... } or globalThis.myFunction = () => { ... }.
HTTPRequest
Description: Send HTTP requests (GET or POST). Fields:
Type: HTTP method (e.g.,POST).URL: Endpoint URL (e.g.,http://localhost:3001/).Body: Request body, with dynamic values (e.g.,{"key":"{{value}}"}). Example: ExecuteJs
HTTPRequest: The body should be formatted as follows:
- For a single action:
{"key":"{{value}}"} - For a multi-action:
{"key":"{{value|,}}"}(replace,with any separator, but|must be included). - HTTPRequests return a single string. A function is required to process the response, especially for multi-actions, as items will be concatenated into the same value, separated by a
,.
SendEmail
Description: Send an email through Dynamics 365 using data from the selected map feature(s). Fields:
entityType: The type of entity record to associate the email with (e.g.,contact,account,lead).entityName: The display name field from the selected feature that will show in the email "To" field (e.g.,{{fullname}},{{name}}).entityId: Dynamic token resolving to the record GUID that the email will be associated with (e.g.,{{contactid}}).emailSubject: The subject line for the email. Can include dynamic values (e.g.,Follow up for {{fullname}}).emailBody: The body content of the email. Can include dynamic values and HTML formatting (e.g.,Hello {{fullname}}, your location is {{maptaskr_lat}}, {{maptaskr_lng}}).
Example:

- This action requires Dynamics 365 with email capabilities enabled.
- The email will be created as an activity record associated with the specified entity.
- Use dynamic tokens (wrapped in
{{}}) to include data from the selected map feature. - The
emailBodyfield supports basic HTML formatting and line breaks (\n).
CopyToClipboard
Description: Copy a specific dynamic value to your clipboard Fields:
clipboardData: Any attribute from the targeted layer (e.g.,{{address1_latitude}}). Example:
NavigateWithGoogleMaps
Description: Populate model‑driven form fields with values from the selected layer feature(s). Target attributes must exist on (and be rendered in) the current form—visible or hidden—for the assignment to succeed.
NavigateWithAppleMaps
Description: Populate model‑driven form fields with values from the selected layer feature(s). Target attributes must exist on (and be rendered in) the current form—visible or hidden—for the assignment to succeed.
NavigateWithWaze
Description: Populate model‑driven form fields with values from the selected layer feature(s). Target attributes must exist on (and be rendered in) the current form—visible or hidden—for the assignment to succeed.
NavigateWithBingMaps
Description: Populate model‑driven form fields with values from the selected layer feature(s). Target attributes must exist on (and be rendered in) the current form—visible or hidden—for the assignment to succeed.
SetFormAttribute
Description: Populate model‑driven form fields with values from the selected layer feature(s). Target attributes must exist on (and be rendered in) the current form—visible or hidden—for the assignment to succeed. Fields:
formAttributes: A table of form attributes to set. Includes formAttributeName, formAttributeType and formAttributeValue. formAttributeValues can be variables. Example:
AppendToFormAttribute
Description: Append text or values to an existing form attribute value. Fields:
formAttributeName: Name of the form attribute to update.formAttributeAppendValue: Value to append to the current attribute value.
Example:

RemoveFromFormAttribute
Description: Remove text or values from an existing form attribute value. Fields:
formAttributeName: Name of the form attribute to update.formAttributeAppendValue: Value to remove from the current attribute value.
Example:

ExportData
Description: Export all selected features to an excel spreadsheet Fields:
attachGeometry: Whether to collect he geometry of the selected feature (e.g.,checked).
Example:

FilterPreloadedLayerByValue
Description: Filter a preloaded sublayer using values from selected features, for example showing Contacts belonging to selected Accounts. This changes the target instance's runtime filter, not its records or saved profile configuration.
Availability: Available as both a Single and Multi layer action. A single-record action requires one feature; a multi-record action requires at least one feature. Even an action containing only literal values requires a selection. Configure it on the source layer whose selected attributes supply the values; the target can be a different layer.
Fields:
preconfiguredLayerId: Required, literal preloaded sublayer instance ID. In Config Manager, edit your profile, open Preloaded Layers, select the target sublayer, and use the copy icon beside the ID in its settings-panel header. Do not use the Profile ID, an Original Layer/Sublayer ID, a service sublayer number or a display name. Variables are not resolved in this field. The instance must already be loaded in the current map; the action does not add it. See Finding the Target Instance ID.filterBy: Required table of filter rows. Use Add to add rows and the remove button to delete them:- Field (
field): Enter the target layer's actual field name, not a display label or source placeholder. Non-blank field names are trimmed; blank-field rows are skipped. - Comparison (
operator): Select an operator appropriate for the target field, such as Equals (equals) or Is In List (isInList). The editor offers operators without checking the target field's data type. - Value (
value): Enter a literal or a dynamic placeholder resolved from the source selection. The value input is disabled for Contains Data (containsData) and Does Not Contain Data (notContainsData).
- Field (
Dynamic values:
- Single:
{{accountid}}resolves against the selected feature'saccountidattribute. - Multi:
{{accountid|,}}resolvesaccountidfor each selected feature and joins non-empty values with commas, in selection order. Duplicates are retained.
In multi mode, use the delimiter form for selected-feature values. A plain {{accountid}} is resolved without a selected-feature context after multi placeholders are expanded; it does not mean the first selected record. It can resolve from supplied form properties, otherwise it becomes empty. Missing single-feature attributes also become empty unless supplied form properties provide the same key. Empty resolved values are not automatically removed from filter rows.
For isInList, use a comma delimiter; equals does not turn a comma-joined value into several alternatives. Only row values are dynamically resolved, not the target ID, field names or operators. See Variables for general placeholder conventions.
- All non-blank-field rows must match (Match All). This action has no Match Any setting. An
isInListrow can match any value in its list, while all other rows must still match. - The action replaces the target's existing UI-filter criteria, including criteria entered through the Data Tab Filter control or an earlier run of this action. It does not append another independent action filter.
- Gallery layer filters, preloaded configuration filters, free-text filters and applicable spatial map filters remain in effect. Other instances of the same gallery sublayer are not changed.
- The map layer reloads matching features. An already-open target Data Tab refreshes its rows and requests a new total where supported. The action does not open a closed Data Tab, make a hidden layer visible or zoom the map.
- Filter To View still constrains Data Tab results; Auto Refresh controls later viewport changes, not whether this action's changed UI filter refreshes the table. Totals describe matching query records, not selected records or only loaded rows. See Data Tab.
An unknown or unloaded instance ID can leave the map unchanged without an action error. An empty table, or rows containing only blank fields, leaves the previous UI filter unchanged; it does not clear it. Enter at least one valid row and verify actual results rather than relying on action completion. Invalid filter JSON causes execution to fail; the editor's required-field checks do not verify the target, field names or provider compatibility.
Example: Show active Contacts for selected Accounts.
-
Preload an Accounts source and a Contacts target in the same profile. Make
accountidavailable on source features. The target must support filtering onparentcustomerid(the parent Account GUID) andstatecode(0for Active). Enable its Data Tab and map visibility. -
In the profile's Preloaded Layers tab, select Contacts and copy the ID beside its instance name in the settings-panel header. For this example it is
15f3289e-96e7-4a92-9906-f0633c5b2991; replace it with the ID you copied. -
On Accounts, add a Multi action named Show active Contacts with action type
FilterPreloadedLayerByValue. SetpreconfiguredLayerIdto the Contacts instance ID and add thesefilterByrows:- Field:
parentcustomerid; Comparison: Is In List (isInList); Value:{{accountid|,}}. - Field:
statecode; Comparison: Equals (equals); Value:0.
- Field:
-
Save the layer/profile changes, load that profile's map, and select two Account rows with IDs
11111111-1111-4111-8111-111111111111and22222222-2222-4222-8222-222222222222in the Accounts Data Tab. Run Show active Contacts. The first row resolves to the comma-separated string11111111-1111-4111-8111-111111111111,22222222-2222-4222-8222-222222222222. -
In Layers, use the Contacts header's View Data button if its Data Tab is not already open. Turn Filter To View off to inspect matches beyond the current viewport. Active Contacts belonging to either selected Account now match; inactive Contacts and Contacts belonging to other Accounts do not. Any independent filters, such as a gallery filter for
address1_countryequal toAustralia, still restrict those results. Existing Contacts UI criteria are replaced. No extra Layer Refresh Properties setting is needed for this filter change.
For the single-record version of this same example, add a Single action on Accounts, change the first comparison to equals and its value to {{accountid}}, and keep the target ID and Active row unchanged. Select one Account and run it to show that Account's active Contacts under the same independent filters.
SetFormLookupAttribute
Description: Set a lookup field within a Dynamics form from a Maptaskr Power Maps Map. Fields:
formAttributeName: Logical name of the lookup attribute on the current form (e.g.,new_assetid).relatedEntityName: Logical (schema) name of the target table/entity (e.g.,new_asset,account,contact).relatedEntityId: Feature attribute holding the target record GUID (e.g.,{{new_assetid}}). Must be a valid Dynamics ID for the entity specified above.relatedEntityDisplayName: Feature attribute holding the human‑readable primary name shown in the lookup control (e.g.,{{new_assetname}}). Used only for display; the system resolves the lookup using the ID.
Why both ID and display name? The ID guarantees the record resolves instantly; the display name avoids showing a blank or placeholder until Dynamics retrieves it.
Example:

AddRecordToMarketingList
This action is only available in Dynamics 365
Description: Add a layer feature to a marketing list
For this action to be usable please make sure the Dynamics Sales Hub is installed. This contains a important table maptaskr needs access to.
Fields:
recordEntityName: Logical (schema) name of the record's table (e.g.,contact,account,lead).recordEntityIdFieldName: Name of the feature attribute that contains the record GUID column (e.g.,contactid).recordEntityId: Dynamic value (token) resolving to the record GUID (e.g.,{{contactid}}).
Example:

SetRecordAssignedUser
This action is only available in Dynamics 365
Description: Assign one or more records to a user or team (owner change). Use this when you need to bulk reassign map‑selected records from the map UI.
Fields:
recordEntityName: Logical name of the table whose records you are assigning (e.g.,contact).recordEntityID: The unique identifier (GUID) of the record, supplied dynamically (e.g.,{{contactid}}).- Example (single record):

SetRecordAttribute
This action requires API access and table permissions to be configured.
Description: Update a single attribute (column) on an existing Dataverse/Dynamics record directly (server‑side) without the field being present on the currently open form. Useful for quick bulk edits from map‑selected features (the action is executed once per selected feature). Fields:
recordEntityName: Logical (schema) name of the table containing the record (e.g.,account).recordEntityID: Dynamic token that resolves to the record GUID (e.g.,{{accountid}}).recordAttributes: A table of attributes to set. Includes attributeName, attributeType and attributeValue. attributeValues can be variables.
- For lookups use
SetRecordLookupAttributeinstead (this action only sets simple / primitive fields: text, number, decimal, float, boolean, date, optionset by value). - When multiple features are selected the update runs per feature with that feature's token context.
- Ensure the user has update privileges on the target table and attribute; failures will be silently skipped if security denies access.
Example (set latitude using the feature's captured coordinate):

AppendToRecordAttribute
This action requires API access and table permissions to be configured.
Description: Append a value to an existing Dataverse/Dynamics record attribute. Fields:
recordEntityName: Logical (schema) name of the table containing the record (e.g.,account).recordEntityID: Dynamic token that resolves to the record GUID (e.g.,{{accountid}}).recordAttributeName: Logical name of the attribute/column to update (e.g.,description).recordAttributeRemoveValue: Value to append to the existing attribute value.
Example:

RemoveFromRecordAttribute
This action requires API access and table permissions to be configured.
Description: Remove a value from an existing Dataverse/Dynamics record attribute. Fields:
recordEntityName: Logical (schema) name of the table containing the record (e.g.,account).recordEntityID: Dynamic token that resolves to the record GUID (e.g.,{{accountid}}).recordAttributeName: Logical name of the attribute/column to update (e.g.,description).recordAttributeRemoveValue: Value to remove from the existing attribute value.
Example :

SetRecordLookupAttribute
This action requires API access and table permissions to be configured.
Description: Set (or change) a lookup attribute on an existing Dataverse/Dynamics record without opening the form. Use this when you need to relate many selected records to a single parent (or feature‑specific parent) directly from the map. Fields:
recordEntityName: Logical (schema) name of the table that owns the lookup you are updating (e.g.,account).recordEntityID: Dynamic token resolving to the record's GUID (e.g.,{{accountid}}). Executed once per selected feature.recordAttributeName: Logical name of the lookup attribute you want to set (e.g.,primarycontactid,new_assetid).relatedEntityName: Logical name of the target (referenced) table (e.g.,contact,new_asset).relatedEntityID: Dynamic token resolving to the GUID of the related record (e.g.,{{contactid}},{{new_assetid}}).
- This action only needs the IDs server‑side; display name resolution happens automatically in Dataverse—no display name parameter required here (unlike
SetFormLookupAttribute). - To clear a lookup, set
relatedEntityIDto an empty string""(ensure the attribute is not required, or the update will fail silently). - Security: The executing user must have Update privileges on the owning table and Read privilege on the target (related) table.
Example (set the Account's primary contact): 
BulkRecordEdit
This action is only available in Dynamics 365 and leverages the native Dynamics 365 bulk edit functionality.
Description: Opens the standard Dynamics 365 bulk edit dialog for multiple records selected from the map. This action piggybacks off Dynamics 365's out-of-the-box bulk edit capabilities, providing users with the familiar native interface to modify multiple records simultaneously. Fields:
entityName: The logical (schema) name of the entity table that will be bulk edited (e.g.,contact,account,lead).entityId: Dynamic token resolving to the record GUID that identifies which records to include in the bulk edit (e.g.,{{contactid}},{{accountid}}).
Example: 
- This action utilizes Dynamics 365's native bulk edit functionality, so users get the standard D365 bulk edit experience.
- The bulk edit dialog will show all the fields that are typically available for bulk editing in Dynamics 365.
- Users can select which fields to update and apply changes to all selected map features at once.
- The action respects all Dynamics 365 security roles and field-level permissions.
- This provides the most comprehensive bulk editing experience by leveraging Microsoft's built-in capabilities.
- Requires the same permissions as using bulk edit directly in Dynamics 365.
Pre-Supplied Fields: The fields {{maptaskr_lat}}, {{maptaskr_lng}}, and {{maptaskr_geometry}} are provided directly by the Maptaskr Power Maps tool. These fields are pre-supplied and available for use in your configurations.
Dynamic Values: To make your values dynamic, wrap them in double curly braces {{value}}. For example, instead of using a static value like "latitude": 40.7128, you can use "latitude": {{latitude}} to dynamically inject the value at runtime.