cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Masse
New Member

Creating a flow from powerapps - need to edit sharepoint metadata

Hi,

I've created an app in powerapps. I then use HTML and onedrive to convert the data from powerapps to a pdf. I then send the pdf to the defined users in the powerapp. I then add the pdf to a sharepoint library. I then want to edit the metadata so that the pdf is tagged correctly.

I have managed to edit most of the categories. But when I come to "Document owner" and "Customer" I've ran into issues.

The customer name is based of 3 numbers, a space and a name. For example "132 Test". In the app the users define the customer number and the customer name. I've tried to create a variable containing the two fields (Including the space) and then use that in the flow "Update file properties". Wont show. 

With document owner, I've tried using the e-mail that I use when sending the PDF. Also tried using the name from 365-users-add-in. As you can see on the pictures I've also tried creating a variable to make the input to a string and write that.  Won't work either. 

Anyone got any tips on how i can take basic strings and convert them to so that Sharepoint will accept the string as the customer?

I've inserted some pictures that might be useful.

 

brave_VM394owuyY.png

brave_cAYEwBPY1t.pngbrave_U9vGoi1xM2.png


Below is the Sharepoint for choosing Customer.brave_K48o3ejfBC.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hey @Masse 

 

While updating the file properties (metadata) for the customer, do you see all the values of the customer by clciking the drop down button as in the screenshot below:rr3.PNG

 

Can you try scrolling down that list and click enter custom value and then select the variable from the dynamic selector? 

 

What is the data type of the customer name column in sharepoint? Did you provide with option to create choices if it is of type choice? Note that for this to work, you need to have the variable value exact with what you have in the choice column in SP (lookout for any unnecessary whitespaces and case sensitivity too)

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2

Hey @Masse 

 

While updating the file properties (metadata) for the customer, do you see all the values of the customer by clciking the drop down button as in the screenshot below:rr3.PNG

 

Can you try scrolling down that list and click enter custom value and then select the variable from the dynamic selector? 

 

What is the data type of the customer name column in sharepoint? Did you provide with option to create choices if it is of type choice? Note that for this to work, you need to have the variable value exact with what you have in the choice column in SP (lookout for any unnecessary whitespaces and case sensitivity too)

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thank you!

You answered what I didn't want to hear, haha!

I tried creating a custom value and then triggering the Variable with customer ID and name. I guess, that I need to change my powerapp, so that the user has to select a customer instead of typing one in. The problem is that I've connected the powerapp and flow to another site. I then transfer the document to our mainsite (where customer data is stored). So I'll have to rebuild my app so that I can fetch the data from our mainsite.

Thanks for the answer!

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 (5,791)