Document exists or not

Certified Associate Developer

I have a list of Ids I need to check wheather document is exists or not - isobjectexist function is not availble in the community is there any alternate function please help me

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Associate Developer

    Hi  , isobjectexist is a plugin it will be available only when you deploy in Community. FYI, In Admin console just go through Plug-ins and click on add new plug-in, then search with Check Object Existence , deploy it. Now you will able to access that plugin in community.

    If you are able to see that plugin, try like below it will solve ur problem.

    reject(

    a!isNullOrEmpty(_),
    a!forEach(
    items: ri!Documents,
    expression: if(
    isobjectexists(
    typeOfObject: "Document",
    objectId: fv!item
    ),
    fv!item,
    null
    )
    )
    )

Reply
  • +1
    Certified Associate Developer

    Hi  , isobjectexist is a plugin it will be available only when you deploy in Community. FYI, In Admin console just go through Plug-ins and click on add new plug-in, then search with Check Object Existence , deploy it. Now you will able to access that plugin in community.

    If you are able to see that plugin, try like below it will solve ur problem.

    reject(

    a!isNullOrEmpty(_),
    a!forEach(
    items: ri!Documents,
    expression: if(
    isobjectexists(
    typeOfObject: "Document",
    objectId: fv!item
    ),
    fv!item,
    null
    )
    )
    )

Children
No Data