Forum Discussion
API call will be counted when you will try to hit on an external network. Coming to your last comment, even if you are hitting the same API 10 times, it will be counted as 10 API hits. Or you can say different functions have the same API call but it will increase the billed call whenever any of the function will run and hit that API.
Thanks again VikasB. It does not really answer my question unfortunately.
What I need to know is:
Is every new case 1 API and only 1 API call?
Is every new comment 1 API call and only 1 API call?
Is a response on a comment 1 API call or more?
Is every case update 1 API call and only 1 API call?
In what other areas will API calls be sent, and is their ratio the same? Aka one insert/update/delete = 1 call
Thanks again
-Matt
- BeckyS7 years agoLithium Alumni (Retired)
Mmalre I checked internally and here's some additional information.
The answer to your question is: yes and no. We have LiQL, which is Lithium's query language, which can consolidate an entire thread, or you can get each one as an individual API call.
For example, fetch recently posted threads retrieves the five most recently posted to threads across the community.
<#assign apiVersion = “2.0”/> <#assign query = “SELECT id, body, subject, view_href, post_time, post_time_friendly, replies.count(*), kudos.sum(weight), author, board FROM messages WHERE depth=0 ORDER BY conversation.last_post_time DESC LIMIT 5" /> <#assign topics = rest(apiVersion, “/search?q=” + query?url).data.items![] /> <ul> <#list topics as message> <li><a href=“message.view_href”>message.subject</a> </#list> <ul>
So, all of that’s basically a single API call.
The LiQL documentation should help some more:
https://lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&v2.main=liqlexamples#recentThreads- Mmalre7 years agoAce
- Mmalre7 years agoAce
Hello again
It's still not very clear, and unfortunately I dont know how to explain it better but I can try and deepen my examples a little.1. We're looking to implement Coveo as our search engine. One of the benefits (of many) with Coveo is that they can search across several repositories. Let's say that we're searching across the TKB, a SFdC repository and Youtube.
In this example, will ONE search result in ONE API call, or three?
2. Say that a portion of the user settings are on the Lithium Database, but another subset are tied to different areas of our backend SFdC database. Will an update in X amount of the SFdC (perhaps in different places within our SFdC instance) result in ONE call, or will it be several depending on where the information have to go in our SFdC instance?
3. If we implement the Case Portal functionality in Lithium and a user updates for example the license information in one table, the version number in another table and also putting in a comment in the case. In doing so it updates the status of the case in yet another table. All in SFdC. Is this ONE API call to salesforce, or several to all the different areas of our Salesforce instance.
Thanks again for your help, and sorry for being to thick headed :)-Matt