Hi forum,
Must be a very easy issue to solve but I don't find a way to do it...
I perform a first HTTP request, I extract the body and store the JSON as string in a Sharepoint List:
Sample of this JSON stored as string in my Sharepoint List:
{
"general": {
"accountName": "Account 1",
"accountGroup": "Group ABC"
},
"hq": {
"accountAddress": "Alpha street 45",
"accountZipCode": "78528",
"accountCity": "Wien",
"accountCountry": "Austria"
},
"Contacts": [
{
"LastName": "Doe",
"FirstName": "John",
"JobTitle": "GM",
"Email": "doe.john@ss.com"
}
]
}
I then perform a new HTTP request, and I extract the body again:
{
"general": {
"accountName": "Account 2",
"accountGroup": "Group ABC"
},
"hq": {
"accountAddress": "Beta street 78",
"accountZipCode": "78566",
"accountCity": "Wien",
"accountCountry": "Austria"
},
"Contacts": [
{
"LastName": "Jones",
"FirstName": "Allan",
"JobTitle": "GM",
"Email": "jone.allan@ss.com"
}
]
}
Now I want to Update my Sharepoint list and append the new HTTP request Body to my previously extracted version stored as String.
My append of both should in this case looks like this:
[
{
"general": {
"accountName": "Account 1",
"accountGroup": "Group ABC"
},
"hq": {
"accountAddress": "Alpha street 45",
"accountZipCode": "78528",
"accountCity": "Wien",
"accountCountry": "Austria"
},
"Contacts": [
{
"LastName": "Doe",
"FirstName": "John",
"JobTitle": "GM",
"Email": "doe.john@ss.com"
}
]
},
{
"general": {
"accountName": "Account 2",
"accountGroup": "Group ABC"
},
"hq": {
"accountAddress": "Beta street 78",
"accountZipCode": "78566",
"accountCity": "Wien",
"accountCountry": "Austria"
},
"Contacts": [
{
"LastName": "Jones",
"FirstName": "Allan",
"JobTitle": "GM",
"Email": "jone.allan@ss.com"
}
]
}
]
I tried extracting my string JSON, store it in a JSON variable and play with append to variable (JSON) but didn't succeed. Not sure what I'm doing wrong..
Thanks for the help
Best regards
Chris