Using AssignMessage to set Form Parameters based on Variables

Not applicable

Can someone suggest a way for me to add a form parameter to a request in an assign message policy?

Neither of these work (XML violations)

<AssignMessage name="createChallenge">
<DisplayName>createChallenge</DisplayName>
<Properties/>
<Set>
<FormParams>
<FormParam name="">{strutsTokenName}:{strutsTokenValue</FormParam>
<FormParam name=\"{strutsTokenName}\">{strutsTokenValue}</FormParam>
......
0 1 1,026
1 REPLY 1

Looks like your XML is ok to me, as far as it goes. But I would do what you want with the Payload element.

It looks like this:

<AssignMessage name="AssigmMessage-1">
    <DisplayName>createChallenge</DisplayName>
    <Properties/>
    <Set>
        <!--
        <FormParams>
            <FormParam name="test1">{strutsTokenName}:{strutsTokenValue}</FormParam>
            <FormParam name="{strutsTokenName}">{strutsTokenValue}</FormParam>
        </FormParams>
        -->
        <Payload contentType="application/x-www-form-urlencoded"><![CDATA[
{strutsTokenName}={strutsTokenValue}&test1={strutsTokenName}:{strutsTokenValue}
]]></Payload>
    </Set>
</AssignMessage>

There's a full api proxy attached that includes this policy. it works. jwheeler-rev2-2016-10-11.zip