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)

Set field A to readonly when field B is changed ( field B is changed by a workflow)

(0) ShareShare
ReportReport
Posted on by 67

1. field A ( field in header) and "Revenue"(two option set) is on the same form of opportunity entity.

2. field  "Revenue"  is updated by a workflow.

3. I wanna set A to readonly when  "Revenue" field's value is changed to "system calculate" by workflow.

Q:

1. i try to add a business rule to do this but it not work.

2. i try to do this in js when form is [reload] or "Revenue"  is [on change] , but when workflow is done it seems neither [reload] nor [on change] is called.

Any Ideas?

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Che,

    Have you checked with business rule scope: Entity?

    Thanks,

  • Suggested answer
    BlackBeard Profile Picture
    445 on at

    Hello,

    you can make this with a Businessrule in the Form :)

    Kind Regards

    Léon

  • sardar ahmed Profile Picture
    520 on at

    Hi,

    This won't work, if the value is changed from workflow or JS, fields on change event wont trigger.

    You, can get rid of the workflow and write the script to change the revenue and also setting the field read only on the same script.

    Thanks and Regards

    Sardar Ahmed.

  • che Profile Picture
    67 on at

    Hi Ridhima,

    Thank you for your answer!

    my business rule's scope is set as "All form".

    There are 3 options "All form","opportunity","information" for select. and "opportunity", "information" is the name of form.

  • che Profile Picture
    67 on at

    Hi Zimmermann,

    Thank you for your answer!

    i've tried this ,but it seems not work...

    : )

  • che Profile Picture
    67 on at

    Hi Ahmed,

    Thank you for your answer!

    It's a good way to solve this problem, but the conditions of changing revenue is complex and that workflow has already released as a product.

    i wonder if there is anything else to deal with it?

    your anwser help me a lot. Thanks : )

    Regards.

  • Suggested answer
    Ryan Maclean Profile Picture
    3,070 on at

    Have you tried setting the Business Rule to Entity scope and testing if it works?

  • che Profile Picture
    67 on at

    i'm sorry, could i know how to set a business rule to entity scope?

  • che Profile Picture
    67 on at

    i've just find it ,thank you ,i will try it now

  • che Profile Picture
    67 on at

    does not work  ...... T_T

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