If i create one record that created record date is older than 3 days, then I want to perform some operation with the help of business rule.
Note: For latest dynamic CRM interview question please click Here.
Scenario: Let's assume I have case entity form and have created one custom field XYZ if the case is older than 3 days then I need to make XYZ field as mandatory otherwise it would be optional?
Step 1: Create a new filed called "todaydate" with data type "Date and Time" and field type "Calculate".
Now click on the edit and make the field as a current date and time by selecting the Now () function under Action that is it no need to give anything under condition.For better understanding i took one more field on form "createdon".
Note: "createdon" field is Out of the Box entity.
Step2: Now I am going to write Business Rule to make field mandatory if case is older than 3 days otherwise it will be optional.
Step3: Once you activate the business process flow just open any old record which is older than 3 days.
I have updated some of the field and try to save but it is giving error like please field the mandatory field.
Thanks for reading this blog.
For Lates dynamic interview question please go to the below link:
Comments
Post a Comment