You are viewing limited content. For full access, please sign in.

Question

Question

Determine number of values in a multi-value field?

asked on May 24, 2018

I'm drawing a blank for some reason...

In Workflow, I need to determine how many values are in a multi-value field and can't figure out how I did this in the past.

As an example:

I have an email address field that is multi-value (can contain one or more email addresses).

I need to know how many email addresses are in that single field. Having this as a token would be the end result.

 

Thanks in advance.

0 0

Replies

replied on May 24, 2018

Use the Value Count function in the Token Editor for that token, as shown here:

4 0
replied on May 24, 2018

Hi Eric,

Can use Script SDK activity,

Public Class Script1
        Inherits RAScriptClass102
        '''<summary>
        '''This method is run when the activity is performed.
        '''</summary>
        Protected Overrides Sub Execute()
            'Write your code here. The BoundEntryInfo property will access the entry, RASession will get the Repository Access session
            Try
                Dim objFieldValueCollection As FieldValueCollection = BoundEntryInfo.GetFieldValues()
                Dim objFieldMultivalue() as Object = objFieldValueCollection("Field_Name")
                SetToken("Number_Multivalue",objFieldMultivalue.Length)

            Catch ex1 As Exception

            End Try

        End Sub
    End Class

regards,
Marco.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.