Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  bulk operations -emptying a value in ACCE

    Posted 06/28/23 01:22 PM

    Hi, I am successfully using scripts to put values to properties, but now I am facing a customer request to clear an already set values for a number of cases. In a case folde in ACCE there is an option to cancel set value and clear the field. Could you please provide a script I can use for bulk action? The example of my script I am currently using is

    importClass(Packages.com.filenet.api.constants.RefreshMode);

    const date1 = new Date("2014-12-31T00:00:00");

    function OnCustomProcess (CEObject)
    {
    CEObject.refresh();
    CEObject.getProperties().putValue("CRU_CzyUmowaNaCzasNieokreslony", "TAK");
    CEObject.getProperties().putValue("CRU_DataZakonczeniaZUmowy", date1);

    CEObject.save(RefreshMode.REFRESH);
    }

    In this case, I would like to value of the CRU_DataZakonczeniaZUmowy to be void. I have tried to put the date1 const as a void value, but it resulted in the date being displayed as 1970.01.01.



    ------------------------------
    Bartosz Kaczmarek
    ------------------------------


  • 2.  RE: bulk operations -emptying a value in ACCE

    Posted 07/04/23 08:49 AM

    Hi,

    did you try to put null value ?

    Best regards



    ------------------------------
    Yannick Martin
    ------------------------------