automatically check AMC End Date for all existing accounts and update AMC Status

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • APARNA
    Junior Member
    • Nov 2024
    • 5

    #1

    automatically check AMC End Date for all existing accounts and update AMC Status

    automatically check AMC End Date for all existing accounts and update AMC Status TO NON ACTIVE or active
    cAmcEndDate field type is Date
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9314

    #2
    Hi Aparna,

    Do you want a background task that checks the AMC End Date and updates the AMC status correspondingly?

    It can be done in two ways:

    - creating scheduled job by coding;
    - creating a scheduled workflow (requires advanced pack).
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • APARNA
      Junior Member
      • Nov 2024
      • 5

      #3
      we have advanced pack.can please share scheduled workflow sample

      Comment

      • APARNA
        Junior Member
        • Nov 2024
        • 5

        #4
        hi,
        we have advanced pack.can you please share scheduled workflow sample.Workflow Trigger = Scheduled → it does not show “Conditions” in the Trigger area (top part). then i give formula script in updation action.but not solving

        Comment

        • yuri
          EspoCRM product developer
          • Mar 2014
          • 9314

          #5
          You need to create a List reports first.

          The report should list records where both AMC End Date is in past and the AMC status is Active. It will output records that are eligible for changing status to Inactive.

          Then, create a scheduled workflow with this report selected. Add an Update Target Record action, set the status to Inactive.

          Configure the scheduling of the workflow to run every day.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          Working...