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
SiddharthSiddharth 

URGENT: Setting ClientId for PE users in Flex

We have a managed package which uses FLEX, can some tell me how to set the value for ClientId in Flex in SOAP Header.

 

Thanks

Siddharth

Astadia

shillyershillyer

It should be similar to the way it's set in the AJAX Toolkit (except in ActionScript) as shown in the docs:

 

sforce.connection.client="ClientID";

 

But you must be sure the clientID is hidden from the user otherwise it will fail the security review.

 

Hope that helps,

Sati

SiddharthSiddharth

Hi,

 

In flex i am not even getting any property like this to set the client Id. I have already done this in .Net and Ajax but not finding a way for Flex. Any help or a sample piece of code would be appretiated.

 

Thanks

Siddharth

D4NNYT3NGD4NNYT3NG

Use the Flex Toolkit (see tutorial at: http://wiki.developerforce.com/index.php/Tutorial:_Creating_Flex_Salesforce_Mashups

Add client="YOUR_CLIENT_ID" into the FLEX markup language

<salesforce:Connection id="force" client="YOUR_CLIENT_ID" />

 

If you are using the scripting language instead of the FLEX markup language, you can pass the Client ID

 

force.client("CLIENT_ID");

 

Hope this helps.

 

 

Best,

Danny

Message Edited by D4NNYT3NG on 08-07-2009 01:41 PM