Who can use this feature?
- Available in TDAdmin and the Ticketing application admin UI
- License Requirement: Enterprise
- Application Access: User must have access to Work Management and the specific Ticketing application, or TDAdmin
- Administrative Access:
- Ticketing Application Admins can configure Workflow Web Services from the Ticketing Application Admin interface
- Global Administrators can configure Workflow Web Services in TDAdmin
- Only Global Administrators can create Service Accounts
In this article, we’ll cover:
What is Workflow Web Services?
Workflow Web Services let you use the TeamDynamix Web API to interact with tickets and other TeamDynamix applications directly from a Ticketing application's workflows.
Instead of requiring manual action, a ticket workflow can reach out over the web—to another system, or even back into TeamDynamix itself—and pass ticket data automatically.
To use workflow web services, you'll work with four pieces:
- Service Account – The account used to authenticate web service calls.
- Web Service Auth Account – Credentials used to authenticate the call, if the Provider requires them.
- Web Service Provider – The base URL for the system you're calling, such as your listserv application or the TeamDynamix API itself.
- Web Service Method – A specific HTTP call (GET, POST, PATCH, etc.) made against a Web Service Provider. This is where you define the endpoint, any parameters, and the body needed for that particular call.
Once these are defined, you can add a Web Service step to a workflow and select the Method to call. For example, you might use a workflow web service to create a ticket in a different Ticketing application, post a notification to Slack, or update a ticket's status based on the response from an external system. For each Web Service step, the system can notify different people depending on whether the call succeeds or fails.
For guidance on adding a Web Service step to a workflow, see Web Service Steps. For a broader look at the TeamDynamix API, see the TeamDynamix API/Web Services Overview.
Note: Workflow Web Services is considered an advanced feature within TeamDynamix. Make sure you're comfortable with the technical requirements and knowledge covered in this article before proceeding.
Before you can use Workflow Web Services to add a Web Service step in a workflow, you need to set up four things in order:
- Service Account — the account used to authenticate web service calls. See Creating a Service Account.
- Web Service Auth Account — the credentials that let a Web Service Provider use your Service Account. See Creating a Web Service Auth Account.
- Web Service Provider — the base URL for the system you're calling. See Creating a Web Service Provider.
- Web Service Method — the specific HTTP call to make against the Provider. See Creating a Web Service Method.
Web Service Method Examples
Once you've created a Web Service Provider and Auth Account, you can define individual Web Service Methods for the calls you want to make. For worked examples, see the following articles:
Locating your API Catalog
Your API catalog location varies depending on whether you have a vanity URL or a standard TeamDynamix URL.
Standard SaaS TeamDynamix URL:
- Production: https://ORGNAME.teamdynamix.com/TDWebAPI
- Sandbox: https://ORGNAME.teamdynamix.com/SBTDWebAPI
Vanity URL:
- Production: https://yourVanityURL/TDWebAPI
- Sandbox: https://yourVanityURL/SBTDWebAPI
Working with Parameters
To use variables in your TeamDynamix workflow Web Service step, you must declare them as parameters. Your TeamDynamix API catalog will indicate what aspects of the URL can be treated as variables by enclosing them in curly braces { }. TeamDynamix uses single curly braces in its API documentation to stay tool-agnostic — but within the TeamDynamix system itself, you declare a variable using double {{ }} curly braces. Any parameter you declare in the Parameters tab can then be referenced by wrapping it in {{ }} anywhere within the workflow Web Service step.
For example, to work with the endpoint from your API Catalog to patch a ticket within a workflow: https://YourDomain.teamdynamix.com/TDWebApi/api/{appid}/tickets/{id}
- Explicitly declare the ticketing appid within the API call— for example, 100
- Change the URL from {id} to {{id}}
- {id} is thow the documentation indicates that this can be a variable
- {{id}} is how TeamDynamix recognizes that there's a variable and checks your declared Parameters list for its value
- In the Parameters tab, set the following:
- Name as id (case-sensitive)
- Data type as Integer (String will also work)
- Source is From Ticket
- Source Property is ID
The resulting URL — https://YourDomain.teamdynamix.com/TDWebApi/api/100/tickets/{{id}} — assigns the ticket’s ID to the variable id, then performs the API call within the Ticketing application, whose ID in this example is 100.
Note: Parameters are always case-sensitive. Pay close attention to the casing of a word or value when creating Workflow Web Services.
Constructing the API Body (Working with JSON)
When creating a Workflow Web Service Body for PATCH or POST, you may come across the following characters in your JSON:
- Angle Brackets: < >
- Parentheses: ( )
- Brackets: [ ]
- Braces: { }
For more information on working with JSON, reference JSON.org.
Testing your Workflow Web Service Steps
There are two primary ways to test your newly constructed workflow Web Service step:
- Using the Test Request button from the Web Service Method, or
- Assigning the web service to a Web Service step in a workflow and sending a ticket through the workflow to trigger it.
Note: Using the Test Request feature initiates a live API call within the system for testing. As such, TeamDynamix recommends building and testing API calls in your sandbox environment first.