Amazon ACE Selling v2

Provides integration with the AWS Partner Central Selling API (APN Customer Engagements, also known as ACE) to read and manage co-sell opportunities, AWS referrals (engagement invitations), engagements, solutions and resource tags in your Workflows. The Node signs requests with AWS Signature Version 4 and is available on Cloud Runtime Clusters.

Revision History

0.0.0.3 - Initial release.

Connection

Use this Connection to store the AWS IAM credentials used to sign requests and to choose the Partner Central catalog that every request reads or changes.

Property Type Description
AccessKey String Required IAM access key ID used to sign requests.
SecretKey Masked Required IAM secret access key used to sign requests.
SessionToken Masked Optional AWS STS session token for temporary credentials. Leave empty when using a long-lived access key.
Catalog Enum Sandbox (default) for test data, or Aws for production Partner Central data.

Setup Notes

  1. Make sure the AWS account is enrolled for Partner Central API access. Requests from an account that is not enrolled fail with OptInRequired.
  2. Create an IAM user or role with the partnercentral permissions required by the operations you plan to use, for example partnercentral:ListOpportunities and partnercentral:CreateOpportunity, for the catalog you will select.
  3. Create an Amazon ACE Selling Connection in Flowgear and enter AccessKey and SecretKey. If you use temporary credentials, also enter SessionToken.
  4. Select Catalog. New connections default to Sandbox, so they cannot change production data by accident. Select Aws only when the Workflow should work with production Partner Central data.
  5. Test the Connection. The test reads one opportunity from the selected catalog. It confirms that the credentials can sign and read, but does not check every write permission.

Requests use the fixed us-east-1 Partner Central Selling endpoint. Temporary credentials expire and are not renewed by the Node. Supply a new AccessKey, SecretKey and SessionToken when they expire. Assume-role credentials are not supported.

Connection errors start with guidance on what to check, followed by the original AWS response:

AWS error Guidance
InvalidSignatureException Check that SecretKey matches AccessKey. If the message reports that the signature is not yet current or has expired, check the clock on the machine running the Workflow. AWS allows 5 minutes of difference.
UnrecognizedClientException Check AccessKey and that the IAM access key is active. With temporary credentials, check that SessionToken belongs to the AccessKey.
ExpiredTokenException Supply new temporary credentials.
AccessDeniedException Check that the IAM user or role has the partnercentral permission for the operation in the selected Catalog, and that the record belongs to this Partner Central account.
OptInRequired The AWS account is not enrolled for Partner Central API access.

Methods

Select an operation template for the Method you want to use. The template supplies OperationId, a GUID identifying that operation, and describes its Options or Items and Response fields. An OperationId from a different Method is rejected.

Method Supported operations
Get GetOpportunity, GetAwsOpportunitySummary, GetEngagementInvitation, GetEngagement, GetSellingSystemSettings
List ListOpportunities, ListEngagementInvitations, ListSolutions, ListEngagements, ListEngagementMembers, ListEngagementResourceAssociations, ListEngagementByAcceptingInvitationTasks, ListEngagementFromOpportunityTasks, ListTagsForResource
Create CreateOpportunity
Update UpdateOpportunity
Action SubmitOpportunity, AssignOpportunity, AssociateOpportunity, DisassociateOpportunity, AcceptEngagementInvitation, RejectEngagementInvitation, StartEngagementByAcceptingInvitationTask, StartEngagementFromOpportunityTask, TagResource, UntagResource

There is no separate Search Method. Use the filters supported by the List templates instead.

Get

Reads one record by its identifier using the selected template.

Parameter Type Description
Connection Connection Amazon ACE Selling Connection used to sign the request.
OperationId String GUID supplied by the selected get template.
Options Object Identifier values for the selected template. Identifier is required for every get template except GetSellingSystemSettings. GetAwsOpportunitySummary requires RelatedOpportunityIdentifier.
Return Type Description
Response Array One row containing the requested record as returned by AWS. A record that cannot be found stops the Node.

List

Lists records using the selected template, with optional filters. The Node returns every page of results. An error on the first page stops the Node.

Parameter Type Description
Connection Connection Amazon ACE Selling Connection used to sign the request.
OperationId String GUID supplied by the selected list template.
Options Object Filter and identifier values supported by the selected template. Filters are optional; with none, the whole collection is returned. ListEngagementInvitations requires ParticipantType, ListEngagementMembers requires Identifier, and ListTagsForResource requires ResourceArn.
Return Type Description
Response Array One row per record in the provider's collection, such as each opportunity summary, task summary or tag. Paging values such as NextToken are not returned. A successful list with no matches returns no rows.

ListEngagements does not accept CreatedBy and ExcludeCreatedBy together. AWS rejects other invalid filter values with ValidationException.

Create

Creates one opportunity for each input item. AWS has no bulk endpoint, so the Node sends one request per item.

Parameter Type Description
Connection Connection Amazon ACE Selling Connection used to sign the request.
OperationId String GUID supplied by the selected create template.
Items Array Required stream of opportunity objects matching the selected template. An empty connected stream creates no records.
Return Type Description
Response Array One result per input item containing the AWS response and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request. Failed results also include the provider's Reason and ErrorList when available.

CreateOpportunity requires a future LifeCycle.TargetCloseDate. PartnerOpportunityIdentifier, your CRM's record ID, must be unique. A second opportunity with the same value fails with ValidationException, so use it to prevent duplicates across Workflow runs.

Update

Updates one opportunity for each input item. Each item names its record in its body using Identifier.

Parameter Type Description
Connection Connection Amazon ACE Selling Connection used to sign the request.
OperationId String GUID supplied by the selected update template.
Items Array Required stream of complete opportunity objects matching the selected template. An empty connected stream performs no updates.
Return Type Description
Response Array One result per input item containing the AWS response and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request. Failed results also include the provider's Reason and ErrorList when available.

UpdateOpportunity replaces the whole record. Any member left out of an item is cleared. Get the opportunity first, change the values you need, and send the complete record with its current LastModifiedDate. A stale LastModifiedDate returns ConflictException. Keep LifeCycle.ReviewStatus as returned; leaving it out makes AWS apply its submission validation.

Action

Runs one record action for each input item, such as submitting, assigning or associating an opportunity, accepting or rejecting an AWS referral, starting an engagement, or tagging a resource.

Parameter Type Description
Connection Connection Amazon ACE Selling Connection used to sign the request.
OperationId String GUID supplied by the selected action template.
Items Array Required stream of objects matching the selected template. Each item names its own record, for example with Identifier, OpportunityIdentifier or ResourceArn. An empty connected stream runs no actions.
Return Type Description
Response Array One result per input item containing the AWS response, which is empty for operations without output, and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request. Failed results also include the provider's Reason and ErrorList when available.

Operation notes:

  • SubmitOpportunity applies only to opportunities that already have an engagement. Submit a new opportunity with StartEngagementFromOpportunityTask instead.
  • AssignOpportunity requires an existing Partner Central user as the assignee. AWS does not provide an API to list users.
  • StartEngagementByAcceptingInvitationTask and StartEngagementFromOpportunityTask are asynchronous. The result reports the started task. Read its outcome with the ListEngagementByAcceptingInvitationTasks or ListEngagementFromOpportunityTasks template. A task returned with a TaskStatus of FAILED is reported as a failed result that keeps TaskId, EngagementId and the other task fields, because AWS may still have created the engagement. If this happens on the first item, the Node stops and the message names the TaskId and EngagementId.

Usage Notes

  • The Node adds the Catalog selected on the Connection to every request. Do not supply Catalog, MaxResults, NextToken or Sort in Options; they are rejected. An item that names a different catalog, or a ResourceArn in a different catalog, fails without calling AWS. Use a separate Connection for each catalog.
  • Options members that are not inputs of the selected template are rejected. Filters that are unmapped, null, an empty string, or an object whose members are all empty are left out of the request.
  • Input values must match the shape described by the template, such as an object, a list, text, a number or true/false. A mismatch fails before AWS is called and names the member's path, for example 'Tags[0].Key' must be text, but a number was supplied.
  • Map string lists as CSV strings in templates, inputs and outputs. Quote values containing commas, quotes or line breaks, and double any quotes inside a quoted value. Spaces are kept. Lists of objects remain structured.
  • Timestamps are returned as AWS sends them. Some contain eight fractional-second digits.
  • ClientToken is optional for CreateOpportunity and the StartEngagement task operations. If you leave it out, the Node creates one so that a retried request doesn't create a duplicate. To prevent duplicate opportunities across Workflow runs, use PartnerOpportunityIdentifier.
  • AWS reports every missing record as ResourceNotFoundException: Resource not found. The Node's message names the operation and every identifier sent, for example Amazon ACE could not find a record referenced by GetOpportunity (Identifier 'O99999999'). AWS response: ResourceNotFoundException: Resource not found.
  • Check Flowgear.IsSuccess for every Create, Update and Action result. If the first item fails, the Node stops. If a later item fails validation, is rejected by AWS, is still throttled after retries, or hits a server error, timeout or interrupted connection, the Node returns a failed result for that item and continues with the rest. Credential and signature errors always stop the Node.
  • A server error, timeout or interrupted connection during a write leaves the outcome unknown because AWS may already have applied the change. Check the record before retrying.
  • List requests use the largest page size AWS allows: 100 rows, or 10 for ListEngagementMembers.
  • AWS limits each partner account to 10 read requests per second and 100,000 per day, and 1 write request per second and 10,000 per day. Throttled requests are retried up to twice after one second. Each request attempt times out after 30 seconds. Timeouts and interrupted connections are not retried.
  • Selecting a template doesn't check that your credentials can run that operation.