ActiveSync limit TargetResources
We are creating user accounts in an LDAP resource and updating the Lighthouse account using an ActiveSync process.
In our activesync logs, we are noticing that the resource accounts for the other resources in the users profile are being read. This is causing performance delays since activesync is trying to reach a resource that may not necessarily be reachable during our load process.
How can we limit the resource view of an activesync process so we are only targeting Lighthouse and this new LDAP resource?
[530 byte] By [
don-rajaa] at [2007-11-27 5:54:54]

# 1
Hi,
Add a new field in your activesync load form name
<Field name='waveset.resources'>
<Expansion>
<append>
<ref>waveset.resources</ref>
<s>resource1</s>
<s>resource2</s>
</append>
</Expansion>
</Field>
Thanx
Shant
Shanta at 2007-7-12 15:49:50 >

# 2
I think setting waveset.resources will have some negative side effects. It acts as the list of resource accounts assigned to the user. If you change it, you may be unassigning the other resources.
Using TargetResources is a safer approach, as it only affects the view. Add it to the Active Sync form within the Properties section
<Properties>
...
<Property name='TargetResources'>
<List>
<s>Resource1</s>
<s>Resource2</s>
</List>
</Property>
</Properties>
# 3
I have added the following to the ActiveSync User Form, but the AS process is still reading all of the resources.
<Properties>
<Property name='TargetResources'>
<List>
<String>Lighthouse</String>
</List>
</Property>
</Properties>
Any thoughts?
# 4
Is the Properties tag at the beginning of the form (directly under <Form>)? See the dynamicformsinit.xml in your sample directory for an example.
This approach is referenced in the documention in Workflows, Forms, and Views (see Customizing Scalable Forms) and in Tuning, Troubleshooting and Error Messages (See Forms in Performance Tuning), so I think it should work.
Jason
# 5
Yes, the Properties tag is directly under the <Form> tag:
<Display class='EditForm'/>
<Properties>
<Property name='TargetResources'>
<List>
<String>Lighthouse</String>
</List>
</Property>
</Properties>
The only difference between this tag and the one provided in the dynamicformsinit.xml is that the display class is <Display class='EditForm'/> instead of <Display class='HtmlPage'/>.
I have checked the Scalable Forms in sample/forms directory, but I don't see one that matches what I am looking for.
# 6
Hi Jsallee,
Can you please explain me how it impact negative side effects...
In the waveset.resources field i append the new resources in the already waveset.rources list.
it will add new resource in the user resources list........only and i think it will work because i m using it.....
Thanx
Shant
Shanta at 2007-7-12 15:49:51 >

# 7
Appending wouldn't affect it adversely, but my understanding was that don-raja wanted to restrict the number of resources loaded in the ActiveSync view.
If he set waveset.resources to just Lighthouse he would effectively be unassigning resources from the user. We had this occur before when one of our admins ran a bulk action.
Jason
# 8
> I have checked the Scalable Forms in sample/forms
> directory, but I don't see one that matches what I am
> looking for.
Hmmm...I don't have a good answer for why it didn't work. Out of curiosity, how are you checking that the view loaded as expected?
One thing is to try setting it to a different resource name. Lighthouse should work, but you never know. Also try an empty list.
Jason