# How to invoke custom REST APIs on Salesforce

**URL:** <https://community.synatic.com/t/how-to-invoke-custom-rest-apis-on-salesforce/135>\
**Category:** Connections\
**Tags:** salesforce, helper-functions\
**Created:** [November 15, 2021, 11:05am UTC](https://community.synatic.com/t/how-to-invoke-custom-rest-apis-on-salesforce/135 "2021-11-15T11:05:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)\
**Post date:** [January 11, 2022, 10:39am UTC](https://community.synatic.com/t/how-to-invoke-custom-rest-apis-on-salesforce/135/3 "2022-01-11T10:39:20Z")

</div>

Hi Konrad,

There is. The below link will assist to how you can pass a variable to the query string.

> [@How to reference a record value in an API URL](https://community.synatic.com/t/how-to-reference-a-record-value-in-an-api-url/145):
>
> In order to reference or call a record value from your API URL in the HTTP Service step, you need to add “{@record.id}” in your API URL as highlighted below. It will return all the records from the API that you created. [image] [How to add a return limit variable in an API URL](https://community.synatic.com/t/how-to-add-a-return-limit-variable-in-an-api-url/188)

i.e. /apexrestcall/ {@record.id}

---

_[View the full topic](https://community.synatic.com/t/how-to-invoke-custom-rest-apis-on-salesforce/135)._
