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

Connecting to sharepoint, after the app is made in powerapps?

Dear powerusers,

Last week i went to a powerapps course organised by Macaw, at the course i had to make a test environment.
After the course i started working on the app that my company was looking for, but i forgot to leave the test environment.
Now that i have created the app, i want it to be able to output it's data to sharepoint.
My company loves sharepoint and the office 365 environment, so now i have to make a connection to sharepoint from the canvas app i have made with powerapps.
Can anyone help me how this works? because i have no clue, and there aren't alot of guides on youtube i can find.
The videos i found were based on a sharepoint list, but now i have to do it the other way around.
Also i'm kind of new to the office 365 environment, besides word ofcourse....
You would be of great help!
So i have this canvas app made in powerapps, but now the data that get's collected in powerapps has to get stored to a sharepoint list.
Thanks again for reading my struggles.

Danny Engels.

1 ACCEPTED SOLUTION

Accepted Solutions

@Anonymous 

So, I would first try to digest that formula and understand what it is doing.  Refer to the documentation on each function in that formula and learn what each does.  Then follow that up with any videos you find online that would explain those functions better for you.  Once you have that in hand more, then hit the templates and also create a few simple apps - even try to duplicate apps you see on videos.  All great learning experiences.  You will need to really get some of that down before you venture in to this. You would really need to bolster some of your knowledge of this beforehand. While a call to review it would be good, it would only be helpful if you were already at a certain point in your app and needed some review.  Certainly can help with some of that, but you need to get up to speed on some of the basics first.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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

10 REPLIES 10
RandyHayes
Super User
Super User

@Anonymous 

You're going to need to go into your DataSources in your App and add a datasource to the SharePoint list you are attempting to work with.  You can go to View->Data sources and then in the DataSource pane, "Add data source".

If you haven't made a connection to SharePoint, you will want to first choose that and create a connection, then you will go to the site and list that you want.

After that, you will have a datasource by whatever name the list is.  That is what you would then substitute into all of your formulas, forms, etc. 

 

I hope that helps you get started.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

@RandyHayes 
Sharepoint IntegrationSharepoint IntegrationThanks for your reply/help, i have made the sharepoint connection.

Now my second question is, that i have an audit testing app already created and ready to be tested by the production department.
The thing is they have to choose between 5 options in all 7 questions, above is an example of one of the 7 questions.

They have to choose one option from the audit list (as seen above) and then confirm it with the green button, or make a remark/photo with the grey button.

 

My core question is, how do i input this into sharepoint if the lead operators choose one of the five options(e.g. click the green button) from the 7 questions?
Do i still have to create the sharepoint list? or does sharepoint update when the green button is clicked?

 

Final question, what is the formula that i type into powerapps to make the data get stored to the sharepoint list?

Thanks again for you help (by the way the language you're reading in the powerapp screenshot is dutch).

Danny Engels.

@Anonymous 

What happens to the information collected is going to depend on how you are handling it in your App.  SharePoint will only get updated if you update it.  There is no connection beyond that.

You would want to look at the formulas you have on the question response buttons to see where you are putting the answers.  Possibily you are recording them in a collection and then patching them to SharePoint at some point later? Or perhaps you are patching them at the time they answer.  That would all depend on how you have the formulas on your buttons.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

@RandyHayes 
My intention is to patch the answers given in the powerapp directly to the sharepoint list.
Sorry for my maybe obvious questions, but im still learning powerapps because i'm an student, and i'm at this company for my internship.
There is one poweruser in the holding section of this company, but he's very busy with all the 26 locations this company has.

how would the formula look like that i have to wire to the green button?

Thanks again for your help/patience

Danny Engels.

@Anonymous 

So, there is no clear-cut "here's the formula" to this.  I am not sure if this is a new app you are designing, or if you are taking this over from someone else.  If taking over, then you need to look at the OnSelect actions of the buttons (to start) to see what is going on in them.

If you are designing this and are stuck at this point, then you need to make some design decisions:

1) Will you be "collecting" all the answers and then updating your SharePoint list at some point after the questions are answered?  Or will you be submitting each answer as they are selected.

2) What will your SharePoint list data structure look like?  One record with multiple question responses?  Multiple records, one for each answer?  Or...other?

3) Where does your list of questions come from now?  Are you "hard-coding" into your app, or are you getting them from a DataSource?  And...what is the data connection (logically, not what is the data source)?

 

Not knowing the above answers might only serve to confuse you even more if I was to provide some examples - which I'd be happy to do.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

@RandyHayes 

Thanks for the response,

 

1) The answers have to be submitted direcly to the sharepoint list, because we're just starting the tests in our production environment, and we have to make it as easy as possible for the people on the production department.

 

2) When the operator(s)/lead operators are choosing between one of the 5 questions, of the 7 main questions. 
There still has to be an option to leave a remark/picture (The grey button) of the production floor if there are some situations that are not acceptable/dangerous.This is how far i came with tryingThis is how far i came with tryingAuditDraft6S.png 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

But the 7 questions are leading.
There is a draft some other students made for me to take the project over (Picture 2).

 

3) i was "hard-coding" them into my powerapp, because i first made the app in a test environment, and transferred it to the production environtment later. but the sharepoint list should look something like picture 2 to make it atleast functional.
In picture 1 you can see the data connections i have made.

Hope this information is enough, i tried my best to explain it as clearly as possible.

Thanks again,

Danny Engels.

 

 

@Anonymous 

So, since this appears then to be one single SharePoint record you are creating, as each question has it's own column in the SharePoint list, then you will want to collect the results of each question and then at the end issue a Patch statement to create/update the SharePoint list.

Not sure if each round of questions represents a new record, or if you need the ability to edit/modify records.  If so, then the challenge there will be getting the proper record to modify.

If not, then it's fairly easy.  On each question on the buttons, patch a local collection with the answer and then at the last question, issue a patch to the SharePoint list.

You might want to take a look at the Survey Template in power apps (listed at the Employee Engagement Survey).  In there you will see this exact method where each question is collected and then at the end it is patched to the datasource.  In the template, it's Excel, but you would just change yours arund to be SharePoint instead.

There will be more complexities if your questions are Choice columns in your SharePoint, but take a look at the template first and then post back when/if you get stuck on the choice column patching.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

@RandyHayes 

Thanks alot for the response again, but i can't get my head around those formulas that are shown i that Employee Engagement Survey.

If this is the right one:

Collect(Responsecollect,{QuestionId:1,ResponseId:CountRows(Responsecollect)+1,Response:Radio1.Selected.OptionText});
If(CountRows(Listcollect)>=1,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,1)).OptionText)}));
If(CountRows(Listcollect)>=2,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,2)).OptionText)}));
If(CountRows(Listcollect)>=3,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,3)).OptionText)}));
If(CountRows(Listcollect)>=4,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,4)).OptionText)}));
If(CountRows(Listcollect)>=5,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,5)).OptionText)}));
If(CountRows(Listcollect)>=6,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,6)).OptionText)}));
If(CountRows(Listcollect)>=7,Collect(Responsecollect,{QuestionId:2,ResponseId:CountRows(Responses)+1,Response:Text(Last(FirstN(Listcollect,7)).OptionText)}));
Collect(Responsecollect,{QuestionId:3,ResponseId:CountRows(Responsecollect)+1,Response:Text(Slider1.Value)});
Collect(Responsecollect,{QuestionId:4,ResponseId:CountRows(Responsecollect)+1,Response:If(Radio1_1.Selected.OptionText="No",TextInput1.Text,Radio1_1.Selected.OptionText)});
If(!IsBlank(TextInput1_1.Text), Collect(Responsecollect,{QuestionId:5,ResponseId:CountRows(Responsecollect)+1,Response:TextInput1_1.Text}));
Navigate(Finish_Screen, ScreenTransition.Fade,{ans5:TextInput1_1.Text})


That is still a bit complex for me haha, i have tried most of the things you told me to do, and i've searched online about the things you told me but i'm still stuck, sorry...

I got a tip from someone i know, but i'm not sure if you're willing to make time out of your day to help me.
She told me that maybe we could make a skype call or something like that, so i can clearly explain what i need to get done. 

That would be great if that's possible! the only problem may be that we're in different time zones probably.
I'll hear from you if you're willing to explain it to me, either on a call or here on the forum's, but i can't thank you enough already!!

Danny Engels.

@Anonymous 

So, I would first try to digest that formula and understand what it is doing.  Refer to the documentation on each function in that formula and learn what each does.  Then follow that up with any videos you find online that would explain those functions better for you.  Once you have that in hand more, then hit the templates and also create a few simple apps - even try to duplicate apps you see on videos.  All great learning experiences.  You will need to really get some of that down before you venture in to this. You would really need to bolster some of your knowledge of this beforehand. While a call to review it would be good, it would only be helpful if you were already at a certain point in your app and needed some review.  Certainly can help with some of that, but you need to get up to speed on some of the basics first.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

Helpful resources

Announcements

Exclusive LIVE Community Event: Power Apps Copilot Coffee Chat with Copilot Studio Product Team

  It's time for the SECOND Power Apps Copilot Coffee Chat featuring the Copilot Studio product team, which will be held LIVE on April 3, 2024 at 9:30 AM Pacific Daylight Time (PDT).     This is an incredible opportunity to connect with members of the Copilot Studio product team and ask them anything about Copilot Studio. We'll share our special guests with you shortly--but we want to encourage to mark your calendars now because you will not want to miss the conversation.   This live event will give you the unique opportunity to learn more about Copilot Studio plans, where we’ll focus, and get insight into upcoming features. We’re looking forward to hearing from the community, so bring your questions!   TO GET ACCESS TO THIS EXCLUSIVE AMA: Kudo this post to reserve your spot! Reserve your spot now by kudoing this post.  Reservations will be prioritized on when your kudo for the post comes through, so don't wait! Click that "kudo button" today.   Invitations will be sent on April 2nd.Users posting Kudos after April 2nd. at 9AM PDT may not receive an invitation but will be able to view the session online after conclusion of the event. Give your "kudo" today and mark your calendars for April 3rd, 2024 at 9:30 AM PDT and join us for an engaging and informative session!

Tuesday Tip: Unlocking Community Achievements and Earning Badges

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!     THIS WEEK'S TIP: Unlocking Achievements and Earning BadgesAcross the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. These badges each signify a different achievement--and all of those achievements are available to any Community member! If you're a seasoned pro or just getting started, you too can earn badges for the great work you do. Check out some details on Community badges below--and find out more in the detailed link at the end of the article!       A Diverse Range of Badges to Collect The badges you can earn in the Community cover a wide array of activities, including: Kudos Received: Acknowledges the number of times a user’s post has been appreciated with a “Kudo.”Kudos Given: Highlights the user’s generosity in recognizing others’ contributions.Topics Created: Tracks the number of discussions initiated by a user.Solutions Provided: Celebrates the instances where a user’s response is marked as the correct solution.Reply: Counts the number of times a user has engaged with community discussions.Blog Contributor: Honors those who contribute valuable content and are invited to write for the community blog.       A Community Evolving Together Badges are not only a great way to recognize outstanding contributions of our amazing Community members--they are also a way to continue fostering a collaborative and supportive environment. As you continue to share your knowledge and assist each other these badges serve as a visual representation of your valuable contributions.   Find out more about badges in these Community Support pages in each Community: All About Community Badges - Power Apps CommunityAll About Community Badges - Power Automate CommunityAll About Community Badges - Copilot Studio CommunityAll About Community Badges - Power Pages Community

Tuesday Tips: Powering Up Your Community Profile

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!   This Week's Tip: Power Up Your Profile!  🚀 It's where every Community member gets their start, and it's essential that you keep it updated! Your Community User Profile is how you're able to get messages, post solutions, ask questions--and as you rank up, it's where your badges will appear and how you'll be known when you start blogging in the Community Blog. Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile.     Password Puzzles? No Problem! Find out how to sync your Azure AD password with your community account, ensuring a seamless sign-in. No separate passwords to remember! Job Jumps & Email Swaps Changed jobs? Got a new email? Fear not! You'll find out how to link your shiny new email to your existing community account, keeping your contributions and connections intact. Username Uncertainties Unraveled Picking the perfect username is crucial--and sometimes the original choice you signed up with doesn't fit as well as you may have thought. There's a quick way to request an update here--but remember, your username is your community identity, so choose wisely. "Need Admin Approval" Warning Window? If you see this error message while using the community, don't worry. A simple process will help you get where you need to go. If you still need assistance, find out how to contact your Community Support team. Whatever you're looking for, when it comes to your profile, the Community Account Support Knowledge Base article is your treasure trove of tips as you navigate the nuances of your Community Profile. It’s the ultimate resource for keeping your digital identity in tip-top shape while engaging with the Power Platform Community. So, dive in and power up your profile today!  💪🚀   Community Account Support | Power Apps Community Account Support | Power AutomateCommunity Account Support | Copilot Studio  Community Account Support | Power Pages

Super User of the Month | Chris Piasecki

In our 2nd installment of this new ongoing feature in the Community, we're thrilled to announce that Chris Piasecki is our Super User of the Month for March 2024. If you've been in the Community for a while, we're sure you've seen a comment or marked one of Chris' helpful tips as a solution--he's been a Super User for SEVEN consecutive seasons!       Since authoring his first reply in April 2020 to his most recent achievement organizing the Canadian Power Platform Summit this month, Chris has helped countless Community members with his insights and expertise. In addition to being a Super User, Chris is also a User Group leader, Microsoft MVP, and a featured speaker at the Microsoft Power Platform Conference. His contributions to the new SUIT program, along with his joyous personality and willingness to jump in and help so many members has made Chris a fixture in the Power Platform Community.   When Chris isn't authoring solutions or organizing events, he's actively leading Piasecki Consulting, specializing in solution architecture, integration, DevOps, and more--helping clients discover how to strategize and implement Microsoft's technology platforms. We are grateful for Chris' insightful help in the Community and look forward to even more amazing milestones as he continues to assist so many with his great tips, solutions--always with a smile and a great sense of humor.You can find Chris in the Community and on LinkedIn. Thanks for being such a SUPER user, Chris! 💪🌠

Find Out What Makes Super Users So Super

We know many of you visit the Power Platform Communities to ask questions and receive answers. But do you know that many of our best answers and solutions come from Community members who are super active, helping anyone who needs a little help getting unstuck with Business Applications products? We call these dedicated Community members Super Users because they are the real heroes in the Community, willing to jump in whenever they can to help! Maybe you've encountered them yourself and they've solved some of your biggest questions. Have you ever wondered, "Why?"We interviewed several of our Super Users to understand what drives them to help in the Community--and discover the difference it has made in their lives as well! Take a look in our gallery today: What Motivates a Super User? - Power Platform Community (microsoft.com)

March User Group Update: New Groups and Upcoming Events!

  Welcome to this month’s celebration of our Community User Groups and exciting User Group events. We’re thrilled to introduce some brand-new user groups that have recently joined our vibrant community. Plus, we’ve got a lineup of engaging events you won’t want to miss. Let’s jump right in: New User Groups   Sacramento Power Platform GroupANZ Power Platform COE User GroupPower Platform MongoliaPower Platform User Group OmanPower Platform User Group Delta StateMid Michigan Power Platform Upcoming Events  DUG4MFG - Quarterly Meetup - Microsoft Demand PlanningDate: 19 Mar 2024 | 10:30 AM to 12:30 PM Central America Standard TimeDescription: Dive into the world of manufacturing with a focus on Demand Planning. Learn from industry experts and share your insights. Dynamics User Group HoustonDate: 07 Mar 2024 | 11:00 AM to 01:00 PM Central America Standard TimeDescription: Houston, get ready for an immersive session on Dynamics 365 and the Power Platform. Connect with fellow professionals and expand your knowledge. Reading Dynamics 365 & Power Platform User Group (Q1)Date: 05 Mar 2024 | 06:00 PM to 09:00 PM GMT Standard TimeDescription: Join our virtual meetup for insightful discussions, demos, and community updates. Let’s kick off Q1 with a bang! Leaders, Create Your Events!    Leaders of existing User Groups, don’t forget to create your events within the Community platform. By doing so, you’ll enable us to share them in future posts and newsletters. Let’s spread the word and make these gatherings even more impactful! Stay tuned for more updates, inspiring stories, and collaborative opportunities from and for our Community User Groups.   P.S. Have an event or success story to share? Reach out to us – we’d love to feature you!

Top Solution Authors
Top Kudoed Authors
Users online (5,312)