Good afternoon! I just can't seem to get past the Patch formula. I have scrapped my form and restarted it many times because nothing seems to work for me. I have attached a photo of my latest form and patch formula, plus the error detail. Any help to finally get past this step would be greatly appreciated! Thank you!
Hi @J_Easter ,
From the screenshot of the form it seems the Name data card contains a Text Input control:
However, in the record argument of the Patch function you are referring to DataCardValue3.Selected for the Name field:
Since a Text Input control does not have a Selected property, an error is returned. Instead try to use the Text property:
{
Name: DataCardValue3.Text,
....
@BCBuizer thank you for the suggestion. I have updated the formula and am still getting an error of some sort. It creates a new record instead of updating the current record and it does not return me to the home screen. I appreciate your help. Thank you!
Hi @J_Easter ,
I see two syntax errors in your formula: a missing closing bracket for the LookUp function and the use of a comma where you should use a semicolon:
Please try with the corrected formula and see if you still have any of the other symptoms.
@BCBuizer Thank you! I finally don't receive any errors 😁 but unfortunately, it is still not performing as expected. It still creates a new record as opposed to patching the record which should be identified through the lookup of the microchip id if I'm not mistaken. Also, in the new record it creates, the Claimed for Foster status is not populating.
Hi @J_Easter ,
If a new items is created, I suspect the LookUp function is not working as intended, probably because the value entered in DataCardValue2 is not an existing Microchip ID.
In case you are using some screen where the user comes to select an animal from a gallery before they come to the screen with the form, it is much better to use the selected item from the gallery instead of relying on the user to type an ID:
LookUp(
'Animal Tables',
MicrochipID = Gallery.Selected.MicrochipID
)
When you have this working, you can simply remove the MicrochipID datacard from the form.
@BCBuizer Yes, there is a gallery where they select on an animal before they get to the form. I attempted to enter your suggestion, but now the formula has an error again and it still did not update the record. Thank you for taking the time to help me better understand.
Hi @J_Easter,
To ensure your form is populated with the information from the gallery item you select, you need to set the 'Items' property of your form to galfoster.Selected. This will ensure that the information from the gallery appears in the columns (fields) you have added to the form.
How you update a record in your table will depend on how your form is constructed. If your form contains all the columns that you wish to update, whether these be text input or combobox's, you can simply use the SubmitForm(galfoster) formula.
Test Scenario
I performed a basic test with a gallery and a form using a combination of ComboBox's and Text Inputs for an existing record. I added the columns to a table and then added them to my gallery and form. I used the 'SubmitForm(Form Name) approach only, and all details that were entered were updated as shown in the below image.
Because we are connected directly to the data source, and all fields we wanted to update are present in the form, we don't need to use the Patch method.
I hope this information was helpful in troubleshooting your approach.
Hi @J_Easter ,
You were nearly there, just a comma is missing:
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!
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.
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.