Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Attach PDF only to Notes in CRM

Posted on by 403

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

*This post is locked for comments

  • Ferdiansah Profile Picture
    Ferdiansah 403 on at
    RE: Attach PDF only to Notes in CRM

    I understood what u say.

    Thanks Ravi Kashsyap

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Attach PDF only to Notes in CRM

    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
    Ferdiansah 403 on at
    RE: Attach PDF only to Notes in CRM

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Attach PDF only to Notes in CRM

    The solution provided by Ravi is certainly the best.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Attach PDF only to Notes in CRM

    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
    Community Member Microsoft Employee on at
    RE: Attach PDF only to Notes in CRM

    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

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Attach PDF only to Notes in CRM

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans