Deleting Emails when there status is Draft

Hi,
I have a requirement where,
I have 3 users User1,User2 and User3 - everyone has delete permissions. Now when Only user2 deletes the Email which is in draft status, need to delete that record, apart from User2 if any user tries to delete the records it shouldn't allow.
Guide me with sample code and screenshots.
jo

Hello,
I would not give you any sample code or screenshots. Just advice - download SDK and learn how to develop plugins. Once you can develop plugins you can develop a plugin that will handle Delete message of email activity and if user is not allowed to delete
particular email - plugin code should generate an Exception.
Dynamics CRM MVP/ Technical Evangelist at
SlickData LLC
My blog

Similar Messages

  • When I touch the email icon there is a draft email stuck on the screen that won't go away if I delete or save it.  I've already tried deleting and resetting the email account which didn't work.  How do I get rid of it?

    I have the new iPad 3 and every time I touch the email icon there is a draft message stuck on the screen that won't disappear even if I touch save or delete.  I've tried removing the email account and putting it back on which didn't work either.  How do I get this draft to disappear?

    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Or Quit the mail app.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button.
    Go back to mail and see if it is fixed.

  • Since the update to iOS 7.0.2 I have only access to my email when there is a new massage. As as massages have been read my name turns light gray and I cannot access my email anymore.

    Since the update to iOS 7.0.2 I have only access to my email when there is a new massage. As as massages have been read my name turns light gray and I cannot access my email anymore. I have 2 other email addresses and they work properly.

    I am in the same predicament...any resolve?  Other than possibly taking it into the shop?

  • Active Sync / Exchange - Deleting Emails when offline

    I am running Activesync to connect to my Exchange server. All things work great, except for one issue. When I am offline (i.e. no cell service, in an airplane, etc.), I am unable to delete emails or move them to one of my folders. It only seems to let me do this when I am online. Is there a way to do this while offline?

    Not at the moment, and I doubt it would be easy to do although I wish the error message wasn't so error like.
    I have just tried on a Nokia device and this appears to cache the changes then upon reconnection sync them. Good idea.
    Maybe iOS update will attend to this although it's not a critical problem more of a niggle.

  • How can I convince T'bird to delete email when online in an IMAP account?

    When online, deleting email Thunderbird does not automaticly move the message to the Trash folder as selected in "Account Settings:Server Settings:Server Settings:When I delete a message: Move it to this folder: 'Trash'." However, this does work automaticly when Thunderbird is offline.
    I'm fairly sure the constant failure, with a notice, of the program to place a sent email into the 'Sent' folder is related. When I mark a messate as junk it is marked junk but not moved to the 'Junk' folder as set in the account settings....
    The accounts do have a Trash, Junk and Sent folder on account provider's server.
    - Jim

    Jim, I said right click the account in the folder (that is the list on the far left of your screen) when you select subscribe you get a dialog that looks like the attached image. That is "what the server has" So you checking the other dialog for mismatches. You will also need to look in Server settings for your deleted folder setting. For some reason it is not with the others.
    If you click on the advanced button in Synchronization and storage, you will get the same "subscribe" dialog if the other instructions just don't cut it.

  • Deleting email when I HotSync

    When I delete e-mail on my handheld and then HotSync, I want the emails to then be automatically deleted from the desktop.  Is there a way to do that?
    Post relates to: Palm TX

    What is the email service you are using? AOL, hotmail, etc.
    Have you checked the hotsync manager settings to make sure the email conduit is enabled?
    Click on the following link to the kb.palm.com webpage for the article regarding, Setting advanced email synchronization options for VersaMail. 
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=26617
    Click on the following link for the support page for your device on the kb.palm.com webpage.
    http://www.palm.com/us/support/tx/
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.
    Post relates to: Palm i705

  • How do I delete photos when there is no delete option?

    I accidentally synced another users iPhone to my computer.  Then when I next synced MY iPhone, all thier photos downloaded to my iPhone.The problem is there is no delete (trash can) icon on any of the other users photos.
    How do I delete these photos?

    Photos sync via iTunes can only be removed via iTunes sync.
    iTunes: Syncing photos
    Scroll down to the To delete synced photos and videos from your device section

  • I delete emails. when i open to check my email later, they returned to my in box and are in my trash as well why they come back?

    emails keep reappearing in my in box after i delete them. They are also in my trash folder. I delete them again. I then have 2 of the same emails in my trash. Why do they keep coming back to my in box?

    This could be occuring because either the Inbox folder is corrupted or the popstate.dat file is corrupted.
    Before you do anything, make a backup of your Profile.
    '''How to create a backup:'''
    Download MozBackup tool (all info at following link) and use it to create a backup of your Profile.
    * http://kb.mozillazine.org/Profile_backup
    If the reappearing email has been downloaded again from the server Inbox, then it is the popstate.dat file.
    '''How to locate and delete the popstate.dat file:'''
    The 'popstate.dat' file keeps a record of what has been downloaded. You need to access the Profile folder and delete this file. The Profile folder is a hidden file.
    make hidden files visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Profile folder extra info:
    * http://kb.mozillazine.org/Profile_folder_-_Thunderbird
    In Thunderbird
    * Help > Troubleshooting Information
    * click on 'Show Folder' button
    * a new window opens showing your Profile folder
    * Close Thunderbird now
    * click on 'Mail' folder
    * click on the 'mail account name'
    * scroll down and locate 'popstate.dat' a DAT File.
    * Delete 'popstate.dat'
    * close the window - top right X
    Open Thunderbird
    Thunderbird will create a new 'popstate.dat' file and start to download everything that is in the server Inbox to the thunderbird mail account Inbox.
    '''If it is a corrupted Inbox:'''
    * Move all emails out of the Inbox into another suitable folder.
    * when Inbox is empty, right click on Inbox and select 'compact'.
    * right click on 'Deleted' folder and select 'Empty folder'
    * right click on 'Deleted' folder and select 'compact'

  • Cant reply to an email when there is an attachment....

    pop up warning states "A copy has been placed in your outbox. The recipient "%@" was rejected by the server because the user is unknown".
    It only seems to be an issue if there is an attachment and not connected to Wifi.  Also, if I switch email account to Icloud it will send it just fine.
    Anyone know why its doing this?

    I would advise you to post your question in the Photoshop Elements forum, here:
    http://forums.adobe.com/community/photoshop_elements
    This forums is for discussions on the forums themselves.

  • Can you make a key with delete cascade when there is no primary key?

    I have a table with a primary key, and also a field called 'tpid', which is sometimes null, and sometimes has an integer value in it. This integer value corresponds a primary key in another table, and that key is also called tpid.
    I would like the following to happen.
    If a row in table 1 is deleted, and it has a tpid that is not null, then I want the corresponding row in the second table to be deleted too.
    I think a trigger could be written to do this, but it would be better if a foreign key constraint with cascade delete could be used.
    One reason that is better is that whenever I script out my database, triggers seem to be left out by default, unless I specifically ask that they not be..
    So can this be done - where column in table 1 has some nulls, and is not a primary key, but when its deleted, you want to delete a matching row in a table where it IS a primary key.
    Thanks,
    Gideon

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    >> I have a table with a PRIMARY KEY, <<
    That is redundant. Table has a key by definition, but the fact that you said it this way tells us you have a high level of ignorance. 
    >> .. and also a field [sic] called “tp_id”, which is sometimes NULL, and sometimes has an integer value in it. <<
    Yep! Wrong again! A column is not anything like a field. The only place “field” is use in SQL is for {year, month, day, hour, minute, second} in temporal values. 
    >> This integer value corresponds a PRIMARY KEY in another table, and that key is also called tp_id. <<
    NO, NO, NO! A key is never NULL by definition. It cannot be NULL in your un-named second table. Where is the DDL? Why do you have manners of a pig? 
    I will guess, since we have no clear specs from you, that you want to replace the NULL with a dummy value that can be used with DRI actions. 
    Would you like to give us enough information to help you? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How do I delete audio when there's no clip to click on?

    I have made several movies, however, the latest one has an issue. There is audio which plays at the end of my movie, but no visible clip (video or audio) for me to right click and delete.  It is like the clip is missing, yet audio plays for five or six seconds, not tied to any video.  I cannot highlight the audio to delete (there's no frame showing even), and I can't lower the volume level there either.  I think there is a bug in the latest upgrade of Premier Elements.  Any ideas?  Or do I have to start all over creating my movie?

    togge
    Great news about the audio.
    Is this premade art made by you or by Adobe which offers it under Titles & Text Tab?
    About the Adobe Titles & Text premade art over a still...keeping in mind that the Quick workspace is not my preferred workspace.
    Quick workspace...Titles & Template Tab/select title template, and then drag it into the Edit area monitor and not into the still in the scene space in the Filmstrip. Or, drag the title template into the title bar directly above the Filmstrip scene space. Can be positioned there and its duration altered.
    Expert workspace...Still on Video Track 1 and title template on Video Track 2 directly above the still on Video Track 1.
    ATR

  • HT1414 How can I delete messages when there is none and its showing 8 messages

    My delete messages is showing 8 messages but showing no messages to delete

    Try a rest: Simultaneously hold down the Home and On buttons until the iPad shuts down. Ignore the off slider if it appears. Once shut down is complete, turn the iPad back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
    you might also try deleting the mail account and re-adding it (in the Settings app).

  • For an iCloud and/or Windstream email account, how can I delete emails across multiple devices, without having to go to each device?

    I have a friend with an iCloud email account and Windstream account on both her iPad and iPhone... She's saying that when she deletes an email from one device, it doesn't delete it from the other automatically... She's using both emails through the "Mail, Contacts and Calendars" settings under the "Settings" menu; not through apps...  I've had her check both of her email account settings to make sure that the settings were consistent... I've never had this issue with Exchange or Gmail, and I don't use the iCloud email account, so I'm a little unfamiliar with what else to look at... Can someone offer some advice, please?
    Thank you for your help!

    IMAP is the mail protocol that allows you to delete a message one place and have it delete everywhere else. iCloud uses IMAP, so it should be working. If the messages never delete, then something may be incorrect in the settings. The easiest thing to do with iCloud is to logout of the account on every device, and then login again. (Another common problem with iCloud email is people often have two Apple IDs, and thus may have two iCloud email accounts. If you get confused about which one you're using, you may think you've deleted email when you actually haven't.)
    If the iCloud messages do ultimately delete across all devices, then it could be that some devices aren't set to "Push" but are instead set to "Fetch" the newest info from the server. Fetch can be set to as long as an hour between check-ins.
    The same holds true for Windstream if she's using an IMAP account there, too. If it's a POP account, then deleting a message one place will never delete it anywhere else—that's the way POP works.

  • Shared Reminders: How do I stop getting emails when changes are made?

    My wife and I both have iPhone 5's that we bought 2 weeks ago. We are sharing a calendar and a "Grocery" list in reminders. I have everything set up where it is working properly but I keep getting emails when a change is made to the grocery list. I don't get emails when there are changes to the calendar.
    I want to stop getting emails when there are changes made to our grocery list but I am not sure how to do it. We both have icloud accounts and we both have checked the box under preferences in my calendar for "in app notifications" for icloud invitations. When I open Reminders in icloud I don't see a preferences for reminders.
    If it helps , or makes any difference, my wife has a yahoo mail account and I have a hotmail account. She does not get emails about changes being made.
    thanks

    Did you try to switch Push "off" and fetch to "manually"? This way no mail is delivered until you choose to open the mail app. The moment you open Mail on your device, your mail account will be checked and if any, mail will be delivered.
    Fetch New Data
    This setting lets you turn Push on or off for MobileMe, Microsoft Exchange, Yahoo!, and any other push accounts on iPhone. Push accounts deliver new information to iPhone whenever new information appears on the server (some delays may occur). You might want to turn Push off to suspend delivery of email and other information, or to conserve battery life.
    When Push is off, and with accounts that don’t support push, data can still be fetched—that is, iPhone can check with the server and see if new information is available. Use the Fetch New Data setting to determine how often data is requested. For optimal battery life, don’t fetch too often.
    Turn Push on: Choose “Mail, Contacts, Calendars” > Fetch New Data, then tap to turn Push on.
    Set the interval to fetch data: Choose “Mail, Contacts, Calendars” > Fetch New Data, then choose how often you want to fetch data for all accounts.
    To conserve battery life, fetch less frequently.
    Setting Push to OFF (or setting Fetch to Manually on the Fetch New Data screen) overrides individual account settings.
    page 203 iPhone_User_Guide
    Message was edited by: Ingo2711

  • Is there a way to have your email on the phone coordinate with the email on your computer?  When I delete emails on my computer they still show up as unread on my iphone.

    Is there a way to coordinate email on your computer and on your iphone?  When I delete email on my computer it still shows up as unread on my phone.

    It depends on the type of email account you are using, POP3 or IMAP.  This article explains the differences:  http://mail2web.com/blog/2010/02/pop-imap-difference/

Maybe you are looking for