web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SearchRequest is not available when working with silverlight and CRM 2011 SOAP Service?

(0) ShareShare
ReportReport
Posted on by

Hi, i am pretyy new to CRM 2011 and Silverlight development. what i want to achivce is to fetch all the available time slots for perticular resources,Sites for an appointment to set. Now I bing about this and found MS CRM 2011 sdk comes with the sample code very much similar to this(~\sdk\samplecode\cs\businessdatamodel\scheduleandappointment). I followed the same thing with the silverlight application and able to create the appointment object as it was available  due to the organization service reference was added. But when i want to create the Object of SearchRequest And SearchResponse classes they are not available with the service reference, which is availble in sdk sample code.

So, my question is, is there is a different way to query the available time slots for resource,Sites with silverlight application Consuming organization service SOAP end points.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    The OrganizationService refrence will only contain the base classes that are required to communicate with the sever.  The SearchRequest class that is found in the SDK proxy assembly is simply a wrapper of the OrganizationRequest type that is found in the web reference. You don't actually need to use a wrapper - you can simply create an OrganizationRequest and set the RequestName to 'Search' and add to the Parameters collection for the 'AppointmentRequest' parameter. You will need to define the AppointmentRequest class in the same way that it is described in the SDK with the same property names.

    hth,

    Scott

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Soctt,

    Thanks for the detailed explanation. Yes i did the same as you suggested and it worked for me.

    Thank you very much for your time.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans