Skip to main content
Known Participant
Dec 4, 2023 6:06 AM UTC
Question

Get Constant using Constant Name

Team,

Do we have any cloud approved function which can provide constant using constant name ?

Regards,

Gaurav

    3 replies

    annap0005
    Participating Frequently
    Dec 4, 2023 6:53 AM UTC

    If you need value then use getconstantvaluebyname("consName")

    if need object details then use getcontentdetailsbyuuid(getconstantorruleuuidbyname("consName"))

    Known Participant
    Dec 4, 2023 7:05 AM UTC

    thank you for reply , i want to pass it to Update Constant smart service, i have multiple constants and hence using name to pass

    annap0005
    Participating Frequently
    Dec 4, 2023 9:16 AM UTC

    I do not think we have option to do so. I would suggest use decision object to handle this.