cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kidkode
Level: Power Up

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

Hi Andy,

 

 

Can you please show full steps by steps? From list to creating app, type of app sharepoint integration or not,List definition to steps taken in the form itself.

 

Also point out field definitions are they dropdowns or not in PowerApps, and in SharePoint list settings what's the column types? Are they single texts or multi line etc?

 

I am having a hard time trying to do the same and I am specifically trying to autopopulate only one field based of a multiple choice list in SharePoint.

 

If anyone else show with screenshots even better!

 

 

Thanks,

shuaib

AndyC
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

Hi,

 

I do not have the time to go into the detail you want, but can give you the steps that should help you.

 

1. You create a list in Sharepoint, and then let Powerapp generate a form based on it (in Powerapps insert Form Edit and connect it to the Sharepoint List so Powerapps generates the Datacards.

 

2. Change the form's FormMode from New to Edit.

 

3. In the OnStart Attribute for the Screen, set a command format: Set(Recordlookup,Param("List_ID"))

 

Where Recordlookup is a variable we are setting here to identify the line for the form.

 

And List_ID is a string to identify the line and feed it to the form. More later.

 

4. Now select your form and for the Item Attribute enter: LookUp('MyList', ID=Recordlookup)

 

Where MyList if the Sharepoint List.

 

5. Now get the URL for your Powerapp, and launch it using the URL:

 

PowerAppsURL?List_ID=Number

 

Where the address/URL is PowerAppsURL

And Number is the ID (1,2,3 etc) of the record you want to populate the form on opening.

 

I used flow to trigger my workflow that was triggered by a new record in the list. This allowed me in an email to recipient to include the PowerAppsURL?List_ID=Number address in the email with the ID variable being use to provide the correct address.

 

Hope this helps.

 

Andy

 

The app should open with the record with ID that matches the

madimad
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

Iam trying to do the same but for me its not working
Highlighted
Madi
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

Hei 

By seeing ur post i manage also to open the power app pre-populated with a sharepoint list item . I have one status field in list . If its "Draft" we can able to create/edit the stuff from power app but if its "Under process" or "Approved" we want to make fields disable  for the user. How can i check ?? 

AndyC
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

Hi,

 

You can do this by putting an IF statement into the Required property of the DataCard, if 'Draft' the True, 'Under Proces' or 'Approved' then false.

 

Syntax covered here:

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

spow
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

I have followed this to the letter and cannot get it to work. Does anyone know of any more recent posts to do the same thing. Completely stuck with this.


lumayara1
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

God bless you guys! It worked for me!

AndyC
Level: Powered On

Re: I simply want to open a Powerapps form pre-populated with a Sharepoint List Item

Glad to hear it.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 45 members 4,151 guests
Please welcome our newest community members: