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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom ribbon button on form

(0) ShareShare
ReportReport
Posted on by 7,316

Hi,

I am working on opening a pdf on ribbon button click. I know how to place the button using ribbon workbench and add commands and display rules to it. Also, I've been following few articles on how to render a pdf from a report using ReportExecutionService and all those stuff. But what I am not sure is how to create a command to the button which calls the code to execute. I know we can set a command to call a javascript function in ribbon workbench but don't know how to execute the render pdf code to this button. Someone please guide me on how to do this.

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    Hi,

    Option 1:

    you can create custom web application, host on server from where you can access CRM system.. in this custom application write your code to render PDF, and call this custom application web page from button click JavaScript function.

    Option 2:

    You can create PDF by using workflow attach it to document notes and on button click open that attachment file.

    But here you need to generate and attach PDF file before button click-- this is more tricky.. either you need to create for all records and attach it to notes.. :(

    or Create two ribbon buttons, one to create PDF and one to Open PDF..

    when Create PDF button clicked update some attribute on form, and save record.. which will call workflow, workflow will create PDF and attach it to Notes..

    and when Open PDF button clicked open that PDF file.

    Hope this will give you some idea..

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans