Skip to main content
swapnar6405
November 29, 2022
Question

Dictionary, Index

  • November 29, 2022
  • 2 replies
  • 0 views

Hi,

I am getting data into a Process Variable like below inside a process model

Name                    Type          Multiple     Value

--------------------    ----------        ----------     ------------

listOfSubmitters    Text           Yes           [addedby:AA1234]; [addedby:AA1235]; [addedby:AA1236]

Now, when I try to access the index 1 value, nothing is coming out.

Any guess what went wrong

    2 replies

    harshas2775
    Brainy
    November 30, 2022

    Can you check if the data is actually in array format and not a semicolon separated single string? 

    One way is you can try expressions like pv!listOfSubmitters.addedby and split(pv!listOfSubmitters,";")

    Based on the output of above both you can verify whether the input value is actually an array or not. 

    ranjiths050336
    November 30, 2022

    The below code will give you the index 1 value

    keyval(
    pv!listOfSubmitters,"addedby",":","]"
    )