Hi, I want to use Apply function over generateuuid, so I am taking an

Hi,

I want to use Apply function over generateuuid, so I am taking an expression like given below:
=apply(fn!generateuuid, {ri!test})
here ri!test is a text array. But when I am running this rule, I am getting the below error:

Expression evaluation error at function 'apply': com.appiancorp.suiteapi.common.exceptions.AppianException: Unexpected number of parameters. (APNX-1-4158-001)

Can anyone guide us how can I do it. I don't want to use MNI.

Thanks
Rishu

OriginalPostID-194546

OriginalPostID-194546

  Discussion posts and replies are publicly visible

Parents
  • There are a few different ways to create GUIDs not using the plugin function. Ideally you should make some reference to the time at the millisecond in order to ensure uniqueness. Here are some examples of functions:

    Examples:
    datetext(now(),"yyyyMMddHHmmssSS")&ri!objectID

    datetext(now(),"yyyyMMddHHmmssSS")&text(rand()*999,"000")

    dec2hex(datetext(now(),"yyyy"))&
    dec2hex(datetext(now(),"MMdd"))&
    dec2hex(datetext(now(),"HHmm"))&
    dec2hex(datetext(now(),"ssSS"))&
    dec2hex(text(rand()*999,"000"))

    Utilizing these would allow you to use a function like apply rather than resorting to intensive MNI
Reply
  • There are a few different ways to create GUIDs not using the plugin function. Ideally you should make some reference to the time at the millisecond in order to ensure uniqueness. Here are some examples of functions:

    Examples:
    datetext(now(),"yyyyMMddHHmmssSS")&ri!objectID

    datetext(now(),"yyyyMMddHHmmssSS")&text(rand()*999,"000")

    dec2hex(datetext(now(),"yyyy"))&
    dec2hex(datetext(now(),"MMdd"))&
    dec2hex(datetext(now(),"HHmm"))&
    dec2hex(datetext(now(),"ssSS"))&
    dec2hex(text(rand()*999,"000"))

    Utilizing these would allow you to use a function like apply rather than resorting to intensive MNI
Children
No Data