Notifications
Announcements
I need help writing the expressions for the Create Item in SharePoint action. See image for details.
Hi there,
Do you have an anonymized version of the JSON output with the [ ? I can take a look.
Attached. Thanks!
Thank you!
I ran the JSON through the JSON validator and it is very upset with the P3P line.
I've tried a couple things, but I'm not sure the best way to do this. I think maybe someone who knows xpath will be able to get a clean solution for you, perhaps. @Chriddle
The JSON provided looks good.Although there is no “Description Vendor” property.
The character mentioned (“[”) means that “formDataList” is an array.
Therefore, you need to add an "Apply_to_each" to loop through this formDataList and create an SP list item for each of these array elements.
Thanks so much for identifying the the “[“ character is.
Do you mind helping me identifying how to configure the “apply to each” action?
The input of the Apply to each is
outputs('Get_form_field_dataof_agreement_in_JSON_format')['body/formDataList']
In the Create item (within the Apply to teach) you address the items's properies like this:
items('Apply_to_each')['Vendor Email']
Thanks so much. I’ll give it a try!
The 'Apply to Each' action worked perfect. My only issue now is that it is adding an additional item to the list for the Approver's inputs, which are not needed. How do I mark the end of where i want the outputs form the form data to be included in the create list item?
See image below.
Use this as Apply to each's input:
take( outputs('Get_form_field_dataof_agreement_in_JSON_format')['body/formDataList'], 1 )
You are the best! Thanks so much. I tweaked the action name to add an underscore between "data" and "of" and it worked!
Edited Expression: take(outputs('Get_form_field_data_of_agreement_in_JSON_format')['body/formDataList'],1)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 523 Super User 2025 Season 2
Tomac 406 Moderator
abm abm 245 Most Valuable Professional