Skip to main content
October 5, 2022
Question

How to get name and link of environment (Test/Dev/Pro) that using

  • October 5, 2022
  • 8 replies
  • 1 view

Hi everyone,

How to get name and link of environment (Test/Dev/Pro) that using

Thank you.

    8 replies

    shalinim0003
    October 5, 2022

    What is the environment do you want? you can get community edition environment by following the belove steps. go to learn tab and then my learning journey and click on get my site .

    Participating Frequently
    October 5, 2022

    Create a expression rule as rule!getBaseUrl() 

    a!localVariables(
      local!url: urlforrecord(recordIds: cons!VOF_CUSTOMER_RECORD),
      /*any record type used in your application*/
      left(local!url, search("/suite", local!url) + 6),
      
    )

    This will return the URL for the environment on which you are working or executing the rule

    ojask2243Author
    October 5, 2022

    thanks you.

    I find another solution that

     
    Participating Frequently
    October 5, 2022

    I am not sure about your requirement but the link is taking us to the task tempo sections.

    October 5, 2022

    A common method is to deploy an environment-specific constant to each environment and have the details (e.g. environment abbreviation, environment link) altered per import using the import customization file on each environment.

    This way you have full control over the value and it's use.

    ojask2243Author
    October 5, 2022

    I try  to use a simple way that using function a!urlForTask