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
  • @Eliot Whilst your suggestion produces a result that is extremely unlikely to be duplicated, I still don't believe it should be considered a UUID. I haven't looked at how fn!generateuuid() works, but most (older, to be fair) UUID generators that I've seen use some combination of time and machine MAC address to produce the identifiers; there's even a standard (https://en.wikipedia.org/wiki/Universally_unique_identifier#RFC_4122_Variant) for it.

    On balance, your suggestion could be considered an implementation of version 4 of RFC 4122, but it might be worth refining it to match the expected format of "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".
Reply
  • @Eliot Whilst your suggestion produces a result that is extremely unlikely to be duplicated, I still don't believe it should be considered a UUID. I haven't looked at how fn!generateuuid() works, but most (older, to be fair) UUID generators that I've seen use some combination of time and machine MAC address to produce the identifiers; there's even a standard (https://en.wikipedia.org/wiki/Universally_unique_identifier#RFC_4122_Variant) for it.

    On balance, your suggestion could be considered an implementation of version 4 of RFC 4122, but it might be worth refining it to match the expected format of "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".
Children
No Data