function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tom JarvelaTom Jarvela 

api usage - Populate Client Id

We are eating through API calls. We have utilized the API Usage report, but that doesn't go as granular as we'd like. Does anybody know if there is a way to set the "Client ID" field that is populated on API call records? For some of our integrations, for instance outlook, It is populated. However for integrations with our website it is not. If we could somehow populate this Client ID it would greatly help us in identifying where these calls are coming from.

See screenshot below. For the first user the Client Id is not sest. For the second user group the Client Id is set. How can we, using REST API calls, populate the Client Id?

User-added image

 
Nissam PSNissam PS
Hi Tom,

You will need to set the client element within the CallOptions header when making API calls. Please see below link 

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_header_calloptions.htm

Thanks!
Charles LyCharles Ly
Is it possible to set this using the rest api? 
David SobczakDavid Sobczak

@Charles Ly normally eyes with the header : Sforce-Call-Options: client=SampleCaseSensitiveToken/100, defaultNamespace=battle

Cf. https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/headers_calloptions.htm

Alex CarryAlex Carry
The client ID / Token is defined when using the SOAP API and goes in the CallOption.client. It allows your app to access professional edition orgs via the API. I think Salesforce assigns it to you when you pass certification, but there isn't anything stopping you passing in whatever value you want.

There isn't a direct equivalent for the REST API that will populate the Client Id. Instead you can get you app whitelisted by Salesforce. I have already used in my web app named centralguide (https://centralguide.net/verizon-wireless-customer-service-phone-numbers/)
pobigoc 190pobigoc 190

United Parcel Service (UPS) primarily focuses on delivering parcels, packages, and all other necessary parcel services such as document delivery.  upser login
Jonye KeeJonye Kee
Looking for body wave wig? It is very suitable for dressing up any party, wedding, prom or special occasion, such as body wave lace, front wigs, etc. Body wave lace front wig, human hair wig (https://www.tinashehair.com/product-category/wigs/).