CCA R2 with SharePoint Search

Aug 15, 2011 at 11:41 AM
Edited Aug 15, 2011 at 2:59 PM

Hi All,

 I tried to develop CCA web hosted example application using SharePoint 2010 site collection. Main requirement is to get the case title and do the SharePoint search using the title, when user clicked on workflow step(Search SharePoint) at CCA. But workflow activity (ControlFinder) is unable to find the search text box control using binding generated using inspector. Control Found(Out) is set to false, but ExecuteControlAction can trigger the search button default action. I tried with UIADataDrivenAdapter as well as WebDataDrivenAdapter.

But I was able to do the same thing using Bing Search and that example application is blogged here(

Can anyone please guess what could be the issue or give me some suggestions.?


Thanks in advance,


Aug 16, 2011 at 10:21 AM
Edited Aug 17, 2011 at 9:55 AM

Interesting!... This is not something wrong in UII work flow activity and it sets the correct search text at search text box. SP site collection has inline java script in the search text box at OnKeyPress and OnFocus. Since those events are not fired when we set the values using UII workflow activity, when the application executed search button click event, inline javascript at search button click event, clears the value at search text box by looking at some hidden field value. That hidden field is not populated with correct value since OnKeyPress and OnFocus events are not fired.

Can Matt or someone please give me some suggestions to fix this issue?

Can we trigger the OnkeyPress and Onfocus event using automation?



Aug 17, 2011 at 11:58 AM

do you actually have to automate the text box and search button?  why not just constuct a search URL with parameters instead?


this is from the CRM partner demo machine.  The search keywords are the "k=crm%20procedure" and the the search scope the "cs=This%20Site...."


Aug 18, 2011 at 10:02 AM

Good suggestion..Thanks..

I would like to know how we can do that, if we really wanted to trigger web button events other than click() using automation. If the company is looking for using CCA on their enterprise level MS CRM implementations, it really worth to find out how it supports to our requirements.

Uii Development guide talks about those events under “Using the HAT Software Factory >Data Driven Adapters (DDAs) >WebDDA >Control events”, but I am not clear how we can use them.