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

Question

Question

Http Post A Multivalue Token

asked on April 15, 2020

Hi,

 

I'm trying to retrieve a multivalue field from a document and post it to a web service using the "HTTP Form Post" activity. Unfortunately the web service is only receiving the first value from the multivalue token.

 

On the "Retrieve Field Values" activity I have ticked the "All Values (as a multi-value token)" option (see screenshot) and I can see with a token tracker that all values are retrieved. 

 

The token that I am posting is "%(RetrieveFieldValues_Additional Text Fields_All)"

 

But no matter what I only ever get the first value, is this a bug or am I doing something wrong?

I have access to the code of the web service, it is in C#. What structure should the value be on the webservice? I was assuming it should be List<string> or IEnumerable<string>. These both gives me the first value but only the first value.

 

Any advice would be greatly appreciated. I would very much like to avoid concatenating the values into a single token that contains separators but I have considered that I could post that instead as a workaround.

 

0 0

Answer

SELECTED ANSWER
replied on April 15, 2020

Did you try concatenating all values with a delimiter and sending that? (You will need to split the variable in the web service.)

%(RetrieveFieldValues_Additional Text Fields_All#[;]#)

2 0
replied on April 20, 2020 Show version history

Hi Jim, thanks for your suggestion. I was originally hoping to avoid doing that but yes that's the workaround I've gone with for now.

 

One thing I really have to thank you for is that I was using a loop to concatenate the tokens in workflow....  So cheers for pointing out a far neater way to do it :)

0 0

Replies

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

Sign in to reply to this post.