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)

Restrict attachment file type for specific entity in crm

(0) ShareShare
ReportReport
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

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    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

  • Dhiraj Raghuvanshi Profile Picture
    45 on at

    thanks for answer....

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

  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    Please regarding object Id type

    Mark answer as verified if it works for you

  • Suggested answer
    Emre GULCAN Profile Picture
    2,379 on at

    Hi,

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

  • Community Member Profile Picture
    on at

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

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