Storing a JSON Array as a content item using Workflow #15870
Unanswered
MichaelNaghavipour
asked this question in
Q&A
Replies: 2 comments
-
The CreateContentTask accepts json as input that can be built with these arguments. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am implementing an IoT platform using OrchardCore. At the current step, my client sends JSON data to my site, which I need to store as content items (which are named data & temp). The data is a single number, and the temp is an array of 24 numbers.
Here is my question:
How can I store temp with all its numbers into a content item with the same size and the data itself to another content?
Here is my JSON example which is being sent to my website by HTTP POST request:
{
"data": {
"dataid":23,
"temp": [1.0,0.2,0.0,0.4,0.0,4.0,1.3,0.0,0.8,7.2,0.5,1.0,4.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.1,0.1,5.0]
}
}
I need to implement this using Workflow, and due to very limited OrchardCore documentation, it would be great if someone provides an example of storing such data using Workflow so that I could refer to it.
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions