Tech Tuesday: Using Variables in a Web Service Action Endpoint

Many web services require the use of a path parameter to complete a request. For example, the Teamwork Add Time Entry endpoint requires a project id to be able to add time an invoice: base_url/invoices/{id}/lineitems.json. If we entered the project id path parameter directly in the url, the endpoint will only work for one project. SmartConnect can dynamically switch out this value with values from a data source using a rest variable.

Setting up the process

I’m going to assume you already have a web service setup and working. The next step is to add a Variable from the Rest Service Maintenance page.

Next, we add the variable in place of the path parameter on the Service Action endpoint. Variables are enclosed in double square brackets.

The last step is to set the variable to be mappable so it can be replaced with mapped values from our data source.

Now, when setting up an integration process using this Service Action, you will have a mappable variable shown in red because the path parameter is a required value. This will replace the path parameter with any values you have in your source data.

This is powerful if you need to dynamically change out a path parameter for a value coming from your source data. Next time we will take it a bit further and incorporate the use of global variables in service entities and actions.

If you have any more questions, please reach out to us at sales@eonesolutions.com

Leave a Comment


Throwback Thursday: Salesforce Queries
2020 Q3 Promotions
Last Chance! Dynamics GP Integration Bootcamp in July 2020!
Happy Fourth of July from eOne Solutions!
Throwback Thursday: Microsoft CSP Billing Integration Case Study


2016 SmartConnect Integration Bootcamps
Tech Tues: Automatically refreshing Pivot Tables in Excel Refreshable Reports
Happy Thanksgiving from the eOne team!
New Releases of Extender and SmartList Builder
2017 SmartConnect Integration Bootcamps



open all | close all


Business Central CRM Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News Events Excel Excel Report Builder Extender Extender Enterprise Flexicoder GP GPUG integration Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Office Relationships partners Popdock promotions release Reporting SalesForce SalesForce.com scripting SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Office Hours SmartList SmartList Builder SmartList Designer SmartView SQL Support Tech Tuesday Templates training Zendesk

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.