web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer Service forum

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

(0) ShareShare
ReportReport
Posted on by

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.

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    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.

  • Suggested answer
    diegompc Profile Picture
    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!

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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans