cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TianaFash
Advocate III
Advocate III

Submitting Form on Canva App Creates a New Row on Dataverse Table

Hi @BCBuizer@AhmedSalih & @mandela ,

 

I am currently having an issue with the Canvas app in relation to the DataVerse table. Once the form on the Canvas App is submitted, a new record is created for the fostered animal in addition to the existing row for the same animal with the ready for foster status. Please refer to the image below with the name " Blaze" describing the issue: 

I have also added a screen shot of my Canvas app.

 

TianaFash_0-1716225503702.png

 

TianaFash_1-1716225702078.png

 

 

3 ACCEPTED SOLUTIONS

Accepted Solutions

Do you have time to jump on a teams call? If so send me a pm of your email address.

View solution in original post

Thank you so much, @Rebecca-MSFT ! Please check your DM. 

View solution in original post

11 REPLIES 11

What formula are you using to patch/submit the information?

I am having the same issue and I am using this formula: OnSelect: SubmitForm(Foster_Form)

AhmedSalih
Most Valuable Professional
Most Valuable Professional

Hello, @TianaFash, The formula you are using in the OnSuccess of the EditForm is creating new record instead of update the Animal record status:

 

To update the Animal record status, your formula should have this format:

 

Patch(TableName, RecordToUpdate, {ColumnName: Value})

 

RecordtoUpdate can be retrevied with the lookup function: Lookup(AnimalTable, Chip#=EditFormName.LastSubmit.Chip#)

 


 

If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

Visit my Blog: ahmedsalih.blog

Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

Hi @AhmedSalih & @Rebecca-MSFT 

 

Thank you for the responses.

 

Please see below my patch function for the Onsucess formula for the form:

 

 

Patch(
    'Animal Details',
    {
        'Animal Detail': Form1.LastSubmit.'Animal Detail',
        'Shelter Status': 'Shelter Status (Animal Details)'.'Claimed for Foster'
    }
);
Refresh('Animal Details');
Navigate('Home Screen');
Notify(
    "You have succesfully claimed an animal to foster",
    NotificationType.Success
)

 

Hi @AhmedSalih , 

 

Thank you for sharing the formula. However, it shows an error function in fx.

 

Inline with the names of my table and form, kindly review my formula below: 

 

Patch(
    'Animal Details',
    Lookup('Animal Details',Chip#=Form1.LastSubmit.Chip#),
    {shelterstatus: "claim for foster"}
);

  

Your formula seems correct so i guest your error should be with the field names, cross check the field names you referencing is correct 

Hi Mandela,

 

Thanks for the response.  

 

Which of the formulas are you referring to? I am very certain the field names aligns with the details in the Canvas App. 

TianaFash
Advocate III
Advocate III

Hi @AhmedSalih & @Rebecca-MSFT,

 

Kindly provide responses to my inquiries. I have posted two FX patch functions and would appreciate it if you could identify the right one for me to solve this. Alternatively, you can review the formula and provide feedback. 

 

The first formula I used : 

 

 

Patch(
    'Animal Details',
    {
        'Animal Detail': Form1.LastSubmit.'Animal Detail',
        'Shelter Status': 'Shelter Status (Animal Details)'.'Claimed for Foster'
    }
);
Refresh('Animal Details');
Navigate('Home Screen');
Notify(
    "You have succesfully claimed an animal to foster",
    NotificationType.Success
)

 

 

Based on @AhmedSalih feedback, I have revised the formula to this, however, I still get the error prompt: 

 

Patch(
    'Animal Details',
    Lookup('Animal Details',Chip#=Form1.LastSubmit.Chip#),
    {shelterstatus: "claim for foster"}
);

 

Thank you and I look forward to your response.  

Do you have time to jump on a teams call? If so send me a pm of your email address.

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (1,286)