cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rejdy
Helper II
Helper II

Output Information from "Append to array variable" in wrong format

Hello guys,

i am new to flow building and not really expereinced with variables, array, JSON, etc. Therefore i need your help with something.

 

So my flow is following:

1. I take information from excel sheet (email, order, role) for all signers assigned to certain department.

2. I initialize an array and get some output as you see in the picture no.1. I get part of code which i want to later put into "Create an agreement ...." step from adobe sign in form of text code (JSON?) for each signer (i have 8 signers in this case) - example how it should look like at the end with all signer info is in the picture no. 3.

3. However, the output from "Append to variable" (my signersInformation from picture no.1) is not in JSON format as i need it - you can see it in the picture no.2 (with this i get an error message "An invalid JSON was specified"). I need it the way as it is shown in the picture no.3.

 

Is there any way to convert the information to correct JSON so my "Create an agreement..." step would go through?

 

 1.JPG2.JPG3.JPG

3 REPLIES 3
ChristianAbata
Community Champion
Community Champion

hi @Rejdy  please use the expression Json expression to convert it... like json("HERE YOUR CODE")

see this video

 

https://www.youtube.com/watch?v=O6QQrlPjp4Y



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Hello @ChristianAbata ,

thanks for your reply!

 

I have tried this expression: json(string(variables('signersInformation'))), but it does not work. I still get the same output as from "Append to array variable" step (see pic1).

 

pic1.JPG.

 

I guess i understand your video, the thing is my number of signers is always different so i do not know how to properly set the "Initialize variable" step. I do not know how to proceed with this at all.

@Rejdy  please try to follow this video

 

https://www.youtube.com/watch?v=O6QQrlPjp4Y



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,293)