cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Update Library metadata after Folder creation

I have a scenario where a person creates a folder in a SharePoint Library.
What I would like to do is update the same library folder metadata from the same Power App.

Step one: Create the Folder
Step two: Update the metadata fields
Step three: submit the form
When I attempt this I get the following error.

Chrislond58_1-1621348016017.png

Chrislond58_0-1621347889269.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Anonymous 

You will need to be creating the Item via a PowerAutomate Flow and have the flow return the ID of the item created.  Then you can use the ID to update the metadata of the Item with that ID.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@Anonymous 

You will need to be creating the Item via a PowerAutomate Flow and have the flow return the ID of the item created.  Then you can use the ID to update the metadata of the Item with that ID.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Anonymous
Not applicable

I understand thank you!

Anonymous
Not applicable

@RandyHayes I found this cool solution online by using JSON I can have a button show up on my list item that can trigger the workflow. However, when using the condition it only works if Pending is in the status field. If I change it from Pending to Approve, the button remains.
If you know something about JSON I would appreciate your assistance.

 

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Launch DI Exit",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"86b2de78-e44c-4e6d-9707-08369f679a42\"}"
},
"style": {
"background-color": "#008082",
"color": "white",
"border-radius": "0 15px",
"visibility": "=if(([$_DIExitApprovalStatus] == 'Pending'),'visible','hidden')"
}
}

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,676)