BPM, Workflow, and Case

 View Only
Expand all | Collapse all

Navigator: Execute an acction on Adding Files on the Document Widget

  • 1.  Navigator: Execute an acction on Adding Files on the Document Widget

    Posted Fri February 03, 2023 11:13 AM
    Edited by Martin Iturbide Fri February 03, 2023 01:08 PM

    Hi

    I'm checking this tutorial "When adding case document, copy the case property values to matching case document property values."

    I'm using Content Navigator 3.0.13

    My goal is to modify the "Add Document" button so when a file is uploaded a REST service is executed sending the ID of the file that was uploaded.

    My issue is that I can not find on the API which is the correct function that will execute after the "Add" button click.
    I'm looking the Javascript API information here, but I'm still lost of what is the correct method.  Should I be looking into "AddContentItemPropertiesPane" for this?

    If someone can provide me some working sample on executing a REST when the document is added, I will appreciate it. Other workarounds to do the same are also welcome.

    Regards



    ------------------------------
    Martin Iturbide
    Consultant
    Next Step C.A.
    Quito
    ------------------------------


  • 2.  RE: Navigator: Execute an acction on Adding Files on the Document Widget

    Posted Fri February 03, 2023 07:03 PM
    Hi Martin,

    We can use aspect.after  function to call rest api .
    another way is on  create event trigger Rest API  call.





  • 3.  RE: Navigator: Execute an acction on Adding Files on the Document Widget

    Posted Sat February 04, 2023 04:48 PM

    Thanks for the reply Ravi.

    Sadly, the IBM site search is not that good, can you please provide a pointer to the "aspect.after" documentation. I'm trying to find some samples on how to use it.

    Regards



    ------------------------------
    Martin Iturbide
    Consultant
    Next Step C.A.
    Quito
    ------------------------------