How to convert json object to form task data

I have form task data as string which i get from previous bot queue. I have done deserialize from string to json object however 'wait for task and resume activity input is Form task data.

@Hari_Raghav25

In deserialize activity you can select the type argument try selecting form task data

Cheers

1 Like

As an alternate

Assign Activity
myTaskData DataType: FormTaskData =

Newtonsoft.Json.JsonConvert.DeserializeObject(Of FormTaskData)(strJSON)

strJSON is your FormTaskData JSON string

when the FormTaskData is e.g. wrapped within a JSON e.g. then we could do like
Newtonsoft.Json.Linq.JObject.Parse(strJSON)(“data”).Values(Of FormTaskData)(0)

within a json we get under a data property a JArray with FormTaskData JObjects and return the first item as a FormTaskData Object

2 Likes

Thanks for you details.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.