Posts

Showing posts from November, 2022

How to use fetch XML query in dynamic CRM JavaScript code

Image
Note: For latest dynamic CRM interview question please click  Here . Let's take an example, I have a fetch xml query which has been downloaded from Advance fine.  For download the fetch xml go to advance setting click on the advance find symbol for my example I am taking any entity and downloading fetch xml. Fetch XML: <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">   <entity name="account">     <attribute name="name" />     <attribute name="primarycontactid" />     <attribute name="telephone1" />     <attribute name="accountid" />     <order attribute="name" descending="false" />     <filter type="and">       <condition attribute="name" operator="eq" value="Alpine Ski House" />       <condition attribute="telephone1" operator=&quo

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.

Image
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