web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do i assign a CDS ...
Power Apps
Answered

How do i assign a CDS lookup field value in Flow

(0) ShareShare
ReportReport
Posted on by 332

In a post yesterday, i left open the question of assigning a Lookup field value in a new record in a child entity when i use the CDS.Createanewrecord Action in Flow.

 

When i tried the simple experiment to test the obvious answer, i hit one design time issue which produced a referential integrity issue, post hoc.

 

In the Flow editor, there is no field in the child entity (viz., Search incident) called Modo (which is the name of the Lookup field in CDS). I didn't know if referential integrity rules would allow Flow to create a Seach Incident record without a Modo value, but it did.

 

So I suspect I left out a step when defining the Entity Relationship between Modo and Seach Incident entities.

 

Two questions then (btw, should i make a habit of breaking up posts with multiple questions into multiple posts?):

 

  1. Can I use Flow to create consistent child entity records? (otherwise, i will revert to my original strategy of using a text field for the parent ModoId)
  2. Is full referential integrity part of the Entity Relationships value proposition in CDS (and if so, where do the docs show us how to fully implement a Relationships)

In my next experiment I will delete a Modo record that is the parent of a Search Incident record. If there is referential integrity i expect, I won't be able to; but since I have doubts about integrity, I expect CDS will not complain.

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @mcorning,

     

    If you would like to use Microsoft Flow to create a new record with Common Data service, when the action is added, the available fields would be listed, and I think currently using Microsoft Flow can't create the "consistent child entity records", if you mean the lookup fields here.

    For PowerApps to manage the relationship, please see the article below:

    Build a relationship between entities

    Hope the information is helpful.

    Regards

  • Verified answer
    mcorning Profile Picture
    332 on at

    I will send this question along to the Flow Forum (i should have done that in the first place because i have no trouble using PowerApps to add consistent child records).

  • BinaRao Profile Picture
    38 on at

    Can you share with us a sample on how one adds consistent child records?  We are trying to implement parent child relationship Powerapps form and this link does not appear to give an example on how to use it in the powerapp. https://docs.microsoft.com/en-us/powerapps/data-platform-entity-lookup

     

    Appreciate your help

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard