Skip to main content
Known Participant
Oct 5, 2022 3:51 AM UTC
Question

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

Hi everyone,

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

Thank you.

    8 replies

    shalinim0003
    Known Participant
    Oct 5, 2022 3:58 AM UTC

    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
    Oct 5, 2022 4:24 AM UTC

    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
    Known Participant
    Oct 5, 2022 6:53 AM UTC

    thanks you.

    I find another solution that

     
    Participating Frequently
    Oct 5, 2022 7:06 AM UTC

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

    Participating Frequently
    Oct 5, 2022 5:59 AM UTC

    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
    Known Participant
    Oct 5, 2022 6:56 AM UTC

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