Folder ID

Certified Senior Developer

Hi Friends,

After creating a new folder through process model. How to get the folder ID?. Is there have any function?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Arul

    The use a tointeger() on that process variable. Or take the document() function to the the "id" attribute. Do not get confused by the the fact that this function expects a number as input. As I said, Appian internally only stores the number and will pass this number to the parameter.

    May I ask why you absolutely need that number?

  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    Now i got the Folder ID with using tointeger() and documentwithfolder ruleinput in expression rule and used in process model. Thanks for your support.

    Its a client requirement. When you are creating the same folder name with multiple times there you have to retrieve with folder ID.

  • 0
    Certified Lead Developer
    in reply to Arul
    When you are creating the same folder name with multiple times there you have to retrieve with folder ID.

    This doesn't really make much sense from a procedural perspective.  2 issues:

    1. why would you create multiple different folders with the same name?  While there's no requirement for folder name uniqueness in the Appian filesystem (since the name is really only an alias for the Folder ID), it only stands to add extra confusion for anyone trying to navigate the filesystem later.
    2. this still doesn't answer Stefan's question of why you specifically need to access the Folder's ID in-process, seeing as how the folder-type PVs stored in-process are still just an alias for the folder ID.