Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

Posted on by Microsoft Employee

Hello Experts,

I have a task grid on account form.I have used a custom field-option set for Activity Status with values Open Cancelled Completed.If a value changes in option set ,user is allowed to change it within the grid itself,save the changes and once the Task form is opened the activity status is updated  at Task Form also as i have made a WF for this .It is working fine.

But what if I want that if anybody changes status on Task form then the same status should be reflected in Grid.Currently the Task form has System field for Activity Status so i am not sure how to do this?

Thanks in advance!!

Please post your queries if the problem is not clear to you :)

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

    Hi Arun,

    Thanks for your reply.

    Can you please explain more.On task Grid i have Activity_Status(option set field) field and Task form i have Activity Status(State Code field) field. I have written a workflow which updates statecode(Activity Status on Task Form) on change of grid's Activity Status option set field value change.But I am unable to do vise versa with WF.I have tried with Business Rule approach too but no luck.

    What you are suggesting ,Please explain in detail,pls.Because i am not aware which plugin where n how is triggered when an activity record status is getting updated.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

    After changing the status to completed the record is visible but Activity_Status(custom field on grid) shows Open.This field is not updated.

    Is it possible that the view you have selected for the grid is showing only open activities hence the record is not visible?-Nothing like that

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

    You should set the custom status before the Task is getting completed, because the closed activities cannot be modified. You can intercept the preupdate plugin & set the custom status attribute in target entity itself.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

    So after changing the ststua sto complete the record is not visible in the grid or the status is still showing as open? Is it possible that the view you have selected for the grid is showing only open activities hence the record is not visible?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

    Hi Ravi,

    Earlier i had system field(statecode with Display Name : Activity Status) on Task Entity.This field was being used at Task form and within Task Grid on Account form.

    My requirement was that a user sould be allowed to make changes(Open/Canceled/Completed) in grid itself and once saved ;changes should be reflected at Main Task form and Vise versa.The Task form changes were reflected in the grid but grid was uneditable.This is the reason i created a custom status field on Task entity and used in Task Grid(Because you must be aware that statecode System field is uneditable).This helped me get the following result :

    Update within the grid was being reflected on Task form.

    But Now the problem is vise versa is not working.I already tried with Workflow but if i mark a task record as completed/canceled then changes are not reflected in the grid.I hope i could explain my problem.Thanks in advance for your help.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Task Status(System Defined fields) value How to reflect in Account Form Grid(Custom field)

    Hi,

    Why do you have your custom status?

    If you have a workflow which updates your custom field on change of system status field then why can't you apply the same logic other way around i.e. on update of system status, update custom status?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans