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

Pushing data from one Data Source to another.

I am working on a Powerapp and working with two data sources (CDS and sharepoint). I want to select specific data from the CDS and then default it into fields for the sharepoint list to create a new item.

 

I have the browse gallery working to find the record in the CDS and then I can view the details this works fine (both of these the datasoure is the CDS).  But when I go in to Navigate to the edit form which the datasource I have set as sharepoint it can't find the edit form it navigates to a blank screen.  

 

Settings on the Data Cards:

  • 'BrowseGallery2'
  • Details form (EditForm2)
    • DataSource: CDS Entity
    • Item: 'BrowseGallery2'.Selected
    • Check mark
      • OnSuccess: Set(CurrentSubmittedRecord, EditForm2.LastSubmit)
  • Edit form (EditForm1) - the one the is empty when viewed
    • DataSource: Sharepoint List
    • Item: 'BrowseGallery2'.Selected

 

 

1 REPLY 1
Drrickryp
Super User
Super User

@Anonymous 

For the Item property of the forms, use Lookup(CDS Entity, ID=BrowseGallery2.Selected.ID).  In order to use BrowseAllery2.Selected as the Item property of the form, the DataSource of the gallery and the form have to be the exact same.  Sometimes using the OOB way to add and edit data via an edit form does not easily solve the problem.  @Meneghino has an excellent blog post here https://baizini-it.com/blog/index.php/2017/09/28/powerapps-101-create-your-own-forms/  for a very flexible way to do it.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,293)