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 / Automatically create r...
Power Apps
Unanswered

Automatically create record in Dynamics 365 (CRM)

(0) ShareShare
ReportReport
Posted on by

Could you help a rookie out? I´ve tried to Google this but no success.

 

I would like to create an app to use for adding Contact, Account and Opportunity in Dynamics 365. I have an idea that a potential customer would enter i.e First Name, Last Name, Email and Company Name in the app. I can manage to create a record in the Contact entity based on Name and Email fields, and a record in the Account entity with the Company Name. 

 

Now I want to automatically create a record in the Opportunity entity, based on the info the potential customer enters. How would I do that?

 

My thoughts:

Create a form connected to the opportunity entity? Can I auto populate the fields based on the previous fields?

Use collections in some way?

Or do I want to use Flow to manage this?

Categories:
I have the same question (0)
  • carlosag Profile Picture
    Microsoft Employee on at

    One option is to use the Patch function

    https://powerapps.microsoft.com/en-us/tutorials/function-patch/

    so that you can control in the button after saving the form to the Contacts, for example:

     

       SubmitForm(Form1);Patch(Opportunity, Defaults(Opportunity), {FirstName: DataCardValue2.Text, etc... })

     

    Inside the { } make sure to set hte right name for the columns you are trying to set and match the right textbox in the Form control.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard