2

Is it possible to set the application in the Login History object when logging in from a external .NET Application?

enter image description here

As you can see the application gets set to Browser when its a browser login, would it be possible to set this value when logging in through the SForceService.login() method?

Instead of it getting set to N/A I would like to populate this field with an application name ex: Salesforce SOAP API Tester

1 Answer 1

0

When using the Partner API you can set the CallOptions.client header to a string before logging in.

Usually the value for this header is provided by Salesforce after passing the security review. Setting this header also allows you to access Professional edition orgs.

For the REST API, you can use a Connected App name to set the application column value.

2
  • Thanks, Daniel. The documentation mentions that this is only available for the Partner API, is there an equivalent when using the Enterprise WSDL? Commented Aug 4, 2015 at 12:43
  • @LucasAnderson I wouldn't expect the Enterprise WSDL to have the same header as the Partner API. The intention is to identify external app exchange products that are connecting to your org. The Enterprise WSDL would never be used in this way with it being specific to the org it was generated from. Commented Aug 4, 2015 at 20:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .