
Hi there
I need to send survey using variable survey ids. When doing this the email templates personalisation variables turn from form fields into one field for the "Fields to send to Webmerge". I've crafted this node from on the instructions in this blog post:
These are the personalisation variables in the survey:
When I run the above flow, I get this error when it tries to send the survey:
Microsoft.FormsPro.Shared.Common.InvalidFormIdException: Source array was not long enough. Check srcIndex and length
This indicated to me that perhaps the Webmerge should be an array:
But when that runs, I get:
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.Dictionary`2[System.String,System.String]' because the type requires a JSON object (e.g. {\"name\":\"value\"}) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON object (e.g. {\"name\":\"value\"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array
I've tried the same two test but with ALL the personalisation variables in the JSON, with and without the First and Last name fields filled in. But the same two errors...
Can anyone explain how I send personalisation variable via Webmerge?
Thanks in advance for all replies!