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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

Associate existing appointment to a bookable resource booking

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

On creation of an appointment, we are creating a bookable resource booking[BRB] and as well trying to associate the appointment with the BRB. But the association is failing. We are trying to associate it using Entity reference as below.

BookableResourceBooking.Attributes["new_appointment"] = new EntityReference("appointment", Appointment.Id);

Could you kindly help us with the issue?

Categories:
I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Mehaboob,

    The code snippet you have shared it the correct way to set the entity reference providedyou have the field called "new_appoinment" in the tagert entity and Appointment.Id returns the Guid. What is the exact error are you facing?

    Hope this helps.

  • Mahendar Pal Profile Picture
    45,095 on at

    Are you setting up all the other booking fields correctly ?? can you share your complete code

  • Community Member Profile Picture
    on at

    Hi Ravi,

    Thank you for reverting. We are not getting any error. Just that the appointment is not getting linked to the bookable resource booking.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Can you share your complete code. There is nothing wrong the code snippet shared in your question.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans