cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Duration, Date Types and Date Rules

Former Member
0 Kudos
340

Hello,

         I am working on CRM 7.0 Ehp1. I have a requirement to create date management for service request. I have to create custom duration, date types and date rule for this. Based on the status of service request i have to calculate date and time in date rules. Can some one help me how to write logic of date rules.

Thanks,

Nizam

View Entire Topic
meimanli
Explorer
0 Kudos

AA=BB date type+CC duration

<?xml version="1.0"?>

<TimeRule>

 <TimeRuleSource>

  <ruleline>

   <AssignTimeExp>

     <VarTimeExp name="RESULT" position='F'/>

     <MoveTimeExp direction="+">

       <VarTimeExp name="BB date type" position='F'/>

       <VarDuraExp name="CCduration" />

     </MoveTimeExp>

   </AssignTimeExp>

  </ruleline>

   </TimeRuleSource>

</TimeRule>

 

AA=BBdate type+CCduration+DDduration

<?xml version="1.0"?>

<TimeRule>

 <TimeRuleSource>

  <ruleline>

   <AssignTimeExp>

     <VarTimeExp name="RESULT" position='F'/>

    <MoveTimeExp direction="+">

         <MoveTimeExp direction="+">

          <VarTimeExp name="BBdate type" position='F'/>

          <VarDuraExp name="CCduration"/>

         </MoveTimeExp>

     <VarDuraExp name="DDduration"/>

    </MoveTimeExp>

   </AssignTimeExp>

  </ruleline>

 </TimeRuleSource>

</TimeRule>

AA=BBdate type+CCduration-DDduration+EEduration

<?xml version="1.0"?>

<TimeRule>

 <TimeRuleSource>

  <ruleline>

   <AssignTimeExp>

     <VarTimeExp name="RESULT" position='F'/>

    <MoveTimeExp direction="+">

         <MoveTimeExp direction="-">

             <MoveTimeExp direction="+">

               <VarTimeExp name="BBdate type" position='F'/>

               <VarDuraExp name="CCduration"/>

             </MoveTimeExp>

           <VarDuraExp name="DDduration"/>

         </MoveTimeExp>

       <VarDuraExp name="EEduration"/>

     </MoveTimeExp>

   </AssignTimeExp>

  </ruleline>

 </TimeRuleSource>

</TimeRule>