Skip to main content
April 2, 2021
Question

How to access related action of a record type using URL

  • April 2, 2021
  • 3 replies
  • 0 views

Hi,

I have a record type where in I have related actions, I want to access one of the related action using URL.

Please help me with an example.

Thanks,

    3 replies

    csteward
    April 2, 2021

    If you are unable to utilize a!startProcessLink(), you can derive the URL utilizing fn!urlforrecord().  

    Here the local!actionUrlPart is obtained by browsing to a record in the Appian interface, right clicking on the Related Action to copy the link.  The /actions/xyz portion will be the same for each record, per type and environment.

    Then we replace the "/summary" portion with local!actionUrlPart for the full Related Action URL:

    a!localVariables(
      local!actionUrlPart: "/actions/iwB1c1V7ZNiU85Gm1M6jYLcxIfUTYayREjSjNnOLVd_61xH5XDiI4JJMU0uPA",
      local!urlForRecord: urlforrecord(cons!YOUR_RECORD,308),
      replace(
        local!urlForRecord,
        search("/summary",local!urlForRecord,1),
        8,
        local!actionUrlPart
      )
    )

    priyankap3485
    July 24, 2024

    Hi [mention:124cfac3ed754d2d8c4a043c0b4591cf:e9ed411860ed4f2ba0265705b8793d05] ,

    I am working on similar requirement, may I know how do you find the local!actionUrlPart for the higher environment. specifically when you do not have access to this related action due to action security in records.

    TIA.

    mathieud0001
    July 24, 2024

    I would use an approach using url parameters instead of trying to generate a Record Action URL.