Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

InstantiateTemplate serviceappointment template is empty

(0) ShareShare
ReportReport
Posted on by 45

Hi! 

I try to get a filled out template to send an apppointment confirmation. I set the templateid to the id of the service appointment template, the objectype to serviceappointment and the objectid to the serviceappointment, for which the confirmation should be send/filled out.

But the return of InstantiateTemplate is an empty value (value: []

The id of the service appointment is correct and the id of the service appointment template is also correct.

Could anyone be so kind to give me a hint?

Thank you!

  • buzzi Profile Picture
    buzzi 45 on at
    RE: InstantiateTemplate serviceappointment template is empty

    You are right. But my description was wrong. I set the id of the email template, which is categorized as service appointment email template and i set the objectid to the id of the service appointment, from which the date should be taken, to fill out the template and the object type to service appointment.

    So for me this seems to be right, isnt it?

    Thank you for your answer!

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: InstantiateTemplate serviceappointment template is empty

    Hi,

    InstantiateTemplate  request works only with Email Template. Please see below docs page.

    docs.microsoft.com/.../instantiatetemplate

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans