@Romy Gutbier,
Here's the thread where this issue was discussed relative to Outlook.
To elaborate a bit more on my solution, the response JSON (the complete body contained in
Response Content) was made up of an array of Message objects. It was a value (isReadReceiptRequested) within the object definition that was killing to deserialization. Instead of deserializing the entire object, I just pulled out the JSON that made up the individual Message objects and returned that as a Collection of strings to the calling BP process/VBO. That way the user could decide what they wanted to do with it. It was a compromise. I could have defined the entire Message object within the code, but being a pretty complex object model would have created a maintenance nightmare.
The action in question is called
List Messages. Here's what the body definition looks like now:
And then in the Global Code I have this method defined:
// Pull out the enclosed JSON objects (ex. Message object) contained in the overall JSON response data
// and return those as a collection of strings.
public DataTable GetDataTableOfValues(string jsonData, string columnName)
{
DataTable data = new DataTable();
DataColumn col = new DataColumn(columnName, typeof(string));
data.Columns.Add(col);
JObject o = JObject.Parse(jsonData);
foreach (JObject val in o["value"])
{
data.Rows.Add(val.ToString());
}
return data;
}
I'm sure you can adapt this to handle your situation with SharePoint.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------