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)

Attach PDF only to Notes in CRM

(0) ShareShare
ReportReport
Posted on by 403

How to set Attach PDF only to Notes in Dynamic CRM using javascript ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    One option could be to have custom html webresource where you can put your script logic to allow customer to have only attach pdf and pass that to notes. Another option is have a plugin to validate documents on notes if you want to go for server side.

    Thanks

  • Community Member Profile Picture
    on at

    Probably the best approach is to fire an Invalid Plugin Exception from a Plugin which validate the primary object id of attachment while creating it.

    Hope it helps.

    If you found the answer helpful, please mark as Verified 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    I don't think there is any setting/ configuration which can be used to set the document type. You need to write custom logic for this.

    This can also be achieved by real time workflow-

    1) Workflow trigger on create

    2) Check if the file name ends with ".pdf", if not then throw error message.

    Check this-

    notepdf2.pngnotepdf2.png

  • Community Member Profile Picture
    on at

    The solution provided by Ravi is certainly the best.

  • Ferdiansah Profile Picture
    403 on at

    how to make dialog "Only Pdf attachment " in workflow ravi ?

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    In the screenshot, check the last step 'Cancel the operation'. You need to stop the workflow and under 'Set Properties' display your message.

    Hope this helps

  • Ferdiansah Profile Picture
    403 on at

    I understood what u say.

    Thanks Ravi Kashsyap

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