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

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 II
Super User II

@emjones07 

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 User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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