Skip to main content

Notifications

Customer Service forum

Set email form read only/freeze/inactive on custom Activity status code values

Posted on by Microsoft Employee

Hello everyone,

I have added custom status code values to the Email entity. On setting of these custom status code, user is able to edit the form. Attached below is the custom activity status called "Marked as Read"

a.jpg

On this status,  i want the form to freeze so that no action can be performed. I want to inactive the form as below with same custom status

b.jpg

I tried setting the fields to read only but CRM throws error if any of the field does not contain value. So looking for a way out to make the entire form read only irrespective of field containing values or not OR if possible freeze the entire form OR somehow set the email state to inactive.

Kindly help me by providing your inputs/pointers.

  • Suggested answer
    diegompc Profile Picture
    diegompc 798 on at
    RE: Set email form read only/freeze/inactive on custom Activity status code values

    Hi Mehaboob,

    Here you have some fields that maybe can help you.

    statecode Edm.Int32

    Status of the activity.

    Display Name: Activity Status

    Default Options
    ValueLabel
    0 Open
    1 Completed
    2 Canceled
    statuscode Edm.Int32

    Reason for the status of the activity.

    Display Name: Status Reason

    Default Options
    ValueLabel
    1 Draft
    2 Completed
    3 Sent
    4 Received
    5 Canceled
    6 Pending Send
    7 Sending
    8 Failed

    Regards!

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Set email form read only/freeze/inactive on custom Activity status code values

    Hi,

    Did you try to make workflow on email to change status of the record  when this field is set to 'Marked as Read' and make it inactive ?? Required field error will come if you will try to do it using java script code and somehow the save event is triggered and your required field don't have any value.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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