cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
theeheng
Regular Visitor

Differences between BookRequest and CreateRequest in Microsoft.Crm.Sdk.Messages

Hi all, i'm new to Dataverse Web API and Organisation Service. I'm just wondering what is the difference between sending a BookRequest and CreateRequest when it comes to creating a new appointment / recurring appointment. From reading the microsoft documentation microsoft.xrm.sdk.messages.createrequest , it looks like the CreateRequest support many other entities whereas BookRequest is mainly for : appointment, recurringappointmentmaster and serviceappointment. Does anyone know more about the differences between these two messages?

 

cheers

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @theeheng,

 

If you user BOOKINGREQUEST you can see the EVENT AS BOOK

 

rampprakash_1-1639153429926.png

 

If you are using Create or Update Operation then the event will be CREATE or UPDATE

 

rampprakash_2-1639153470326.png

 

 

Event will show as BOOK or Create Event based on the Message which you are passing

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

View solution in original post

6 REPLIES 6
rampprakash
Super User
Super User

Hello @theeheng,

 

Let me clarify here

 

CreateRequest --> If you want to Create a Record with Any type of field in OOB Entity or Custom Entity you are good to go with Create Request.

 

BookingRequest --> Time Depends because we are have some dates based on the dates we are creating a request so we are using the BookingRequest only in appointment, recurringappointmentmaster and serviceappointment.

 

Hope it helps let me know if you have any other queries.

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

I did a test using Microsoft.Xrm.Sdk to send both BookingRequest and CreateRequest messages with single appointment object. When I check the data inserted into appointment and acitivitypointer entity, both appointment created via BookingRequest and CreateRequest  look the same. Thats why I'm trying to find out the difference and which one I should use when creating appointment.

bipinshan
Super User
Super User

Hi,

 

One basic differenct is Book Request can only be used with Appointment, recurringappointmentmaster and serviceappointment entity. However CreateRequest can be used with any Entity request be it Account, Contact and any custom entities.

 

Please mark my answer verified if this is helpful!

Regards,

Bipin Kumar

Follow my Blog: https://xrmdynamicscrm.wordpress.com/

Hello @theeheng,

 

If you user BOOKINGREQUEST you can see the EVENT AS BOOK

 

rampprakash_1-1639153429926.png

 

If you are using Create or Update Operation then the event will be CREATE or UPDATE

 

rampprakash_2-1639153470326.png

 

 

Event will show as BOOK or Create Event based on the Message which you are passing

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

hi @rampprakash , thanks for the clarification thats very helpful. I'm completely new to all this, may I know how I can view the list of event as shown on your screenshot? is that from the XrmToolbox? or on Dynamic 365?

 

cheers

Heng

 

Hello @theeheng,

 

You can see this in AUDIT log

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,440)