Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

InstantiateTemplate serviceappointment template is empty

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,962 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans