cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ahmad-KAISPE
Helper V
Helper V

Converting JSON String to JSON Array

Hi all,

 

I have an email body. I converted into an array using compose action which is look like this:

 

**************

[
  "Hi,",
  "We are interested in your product listed on marketplace. Please take review on",
  "these product items.",
  "*** Prospect Information ***",
  "Name: Test Test",
  "Company: Test.com",
  "*** Product Detail ***",
  "Product Id: Dev_002",
  "Product Name: testProduct_1",
  "Product Quantity: 3",
  "Product Id: Feq_214",
  "Product Name: testProduct_2",
  "Product Quantity: 2",
  "Regards",
  "Test Test"
]

**************

 

As you can see email contains multiple products (with name, id and qty). Using these information, i need to create record list in CDS.

 

Next, what i am trying to do is to parse json so i can use its objects from dynamic contents in further steps.

 

Is there any possibility i can convert this into json array?

Can someone please help me out on this?

 

Regards

Ahmad.

1 ACCEPTED SOLUTION

Accepted Solutions

thank you 

 

 

 

View solution in original post

2 REPLIES 2
rimatos
Community Support
Community Support

Hi @Ahmad-KAISPE ,

 

Could you improve your question with adding some screenshots on what you have already performed and show us what you are currently trying to achieve.

Depending on what information you insert in the parse JSON you may already be creating the array.

This link, show you an example on how creating a people array. In this thread you also have a suggestion of the structure of a JSON array.

 

Hope this helps!

 

Regards,

Ricardo

thank you 

 

 

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,469)