Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Restrict attachment file type for specific entity in crm

Posted on by 45

Hi All,

I have a requirement where i need to restrict file type for specific entity in notes for e.g. i have three entities contact,account and customer entity so in contact entity user should upload only .doc file and in account entity user should upload only .pdf file and in customer entity user should upload only .txt file.

So how do i achieve this requirement for different different entity

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Restrict attachment file type for specific entity in crm

    Thanks, Scott. Will check the reference you sent and keep you posted.

  • Suggested answer
    Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: Restrict attachment file type for specific entity in crm

    Hi,

    You can use "objectid" attribute, this is "EntityReference" and has "LogicalName" property.

  • Suggested answer
    M.Azwar Alam Profile Picture
    M.Azwar Alam on at
    RE: Restrict attachment file type for specific entity in crm

    Please regarding object Id type

    Mark answer as verified if it works for you

  • RE: Restrict attachment file type for specific entity in crm

    thanks for answer....

    we did it already .....but How do we find particular entity at a time of creation of note?

  • ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Restrict attachment file type for specific entity in crm

    You would need to write a plugin on create of the annotation entity and throw an PluginExecutionException if the types do not match. See msdn.microsoft.com/.../gg328490.aspx

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans