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)

MS CRM 2016 Document Generation SDK Message

(0) ShareShare
ReportReport
Posted on by

Hi,

Are there SDK messages in MS CRM 2016 to generate the documents from program/code using the new CRM 2016 document teamplates?

We have a requirement where the documents have to be generated via plugins and uploaded to share point. We would like to use the CRM 2016 templates but are not able to find messages to generate a document through code.

Thanks,

Rohit

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Deepesh161 Profile Picture
    6,317 on at

    Here is a list of supported SDK methods at this stage:

    msdn.microsoft.com/.../mt607892.aspx

    I doubt running a template via SDK is available yet.

  • Suggested answer
    Joe Gill Profile Picture
    on at

    Hi Rohit,

    You can generate the document from a workflow - twitter.com/.../689898813750919169

    This adds its as a note with the document attached.

    I tried to searching for a way to grab this action and write a plug in to save it elsewhere but could not find it. Maybe somebody smarter than me can figure it out. I guess you could add plug on the attachment create event and from there save it to SharePoint

    Hopefully document templates will be extended soon to allow us to use the SDK to generate documents and create PDFs and email them.

    hth

    Joe

  • Pramod M Profile Picture
    1,445 on at

    Hi All,

    Any update for using Document template in plugin. My requirement is to generate different certificates as pdf based on certificate entity type. So I thought of using document template to create different certificate type and then read the template in plugin and replace the fields and then generate pdf from word.

    Any update will be really helpful.

  • Verified answer
    Community Member Profile Picture
    on at

    Rohit,

    Try below link:

    crmtipoftheday.com/.../generate-documents-in-code

    SetWordTemplate is the message which generates a word document based on the provided template and attaches the generated document to the Note regarding the Target entity.

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