---
schema_version: "1"
id: 9ae429b50cbadb6d5ca0f43758a211de1002b87dff36745008255e8474a2f63d
title: Update API Implementations of Action Plans
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/fsc_action_plans_update_api_implementations.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.fsc_action_plans_update_api_implementations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: db9a17fd75898b82736e4ca381ea7570aa9fb5eb69a502b245b9c7c760cd3231
description: In Summer ’19, Action Plans expanded object support to more standard and custom objects. If your API implementation of Action Plans references TargetId and assumes it’s an account record, you must update your code.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Update API Implementations of Action Plans

In Summer ’19, Action Plans expanded object support to more standard and custom objects. If your API implementation of Action Plans references `TargetId` and assumes it’s an account record, you must update your code.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Automotive Cloud, Consumer Goods Cloud, Education Cloud, Financial Services Cloud, Government Cloud with Lightning Scheduler, Health Cloud, Manufacturing Cloud, Nonprofit Cloud, and Public Sector Solutions. <a href="https://help.salesforce.com/s/articleView?id=action_plans_editions_permissions.htm&amp;language=en_US" target="_blank">View edition availability</a>.</td></tr></tbody></table>

Before API version 46, Action Plans only supported the Account object. If you implemented Action Plans using automation, `TargetId` was the ID of the Account record that relates to an action plan.

Starting in API version 46, Action Plans supports multiple target objects, including Account, Campaign, Case, Contact, Contract, Lead, Opportunity, and more. You can also use Action Plans with custom objects that have activities enabled. This enhancement means that `TargetId` is now a polymorphic field key. Use `TargetEntityType` to determine the type of object the action plan template is based on. Then use `TargetId` to look up the record in the appropriate object’s table.

Before version 47, Action Plan Templates could only contain task items. Starting in API version 47, Action Plan Templates can contain a mix of task, document checklist, and assessment task items. Task triggers that use API version 46 or less can fail if triggered by an Action Plan Template that contains different types of items. Solve this by upgrading task triggers to API version 47 or greater, or making sure that Action Plan Templates only contain one type of item.

You can’t customize the ActionPlanTemplate object. Any updates to the object fields via the UI are applicable only to the local org and can’t be retrieved by using Metadata APIs.

#### See Also

- [_SOQL and SOSL Reference:_ Understanding Polymorphic Keys and Relationships](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships_and_polymorph_keys.htm)
- [_Apex Developer Guide:_ Working with Polymorphic Relationships in SOQL Queries](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL.htm)
- [_Cloud Flow Designer Guide:_ Cross-Object Field References in Flows: Polymorphic Relationships](https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_designer_crossobject_reference_poly.htm)