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)

Integration JSPDF in dynamics crm

(0) ShareShare
ReportReport
Posted on by 5

Hello community 

I need to generat a custom PDF using JSPDF and JSPDF AUTOTABLE 

I added the 2 webressources as librairies in The onload of the form and

23846.capture1.PNG

also i added them in the action command of the button in Workbensh 

0640.capture2.PNG

But I get an odd behavior for :

For the first click on the button the crm generate the PDF But after That I couldn't generate it any more 

 I got an error Cannot read Property API  it seems like crm can't charge or read the fonction from the librairie (I got this error onload and when i click on the button)

6710.Capture3.PNG

Does Any one Have already had this kind behavior ?OR maybe another way to generate PDF using JS?

Please Let me Know  PLS!!

Ps : I work on CRM 2015 Onpremise

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Sreevalli Profile Picture
    3,256 on at

    Hi,

    You need to make sure that which ever variables throws undefined error, is assigned a value to it.

    As you are using third part library, which should be added in header sources.

    share the code snip will help in finding issue.

  • Jamil Lamyae Profile Picture
    5 on at

    Thanks for the reply , I resolve the problem

     Yes , You was right , I added  the library in the head in order to load them each time needed and it works fine

  • Sreevalli Profile Picture
    3,256 on at

    Great, Thanks :)

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