How can I add errors manually to the errors table?
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors
Is there an easy / recommended way of doing this?
Solved! Go to Solution.
Errors table is just like any other collection, so this worked:
Collect(Errors('MySource'),{Column: "Col1",Message:"field is required",Error:2})
Errors table is just like any other collection, so this worked:
Collect(Errors('MySource'),{Column: "Col1",Message:"field is required",Error:2})
@LuisTorres wrote:Errors table is just like any other collection, so this worked:
Collect(Errors('MySource'),{Column: "Col1",Message:"field is required",Error:2})
Hi @LuisTorres
Is ('MySource') is the collection name?
Is this part: Message:"field is required",Error:2 is hard coded?
What i need to understand is, can we really capture the error message generated from power app into a collection?
Thanks,
pytbyt
Errors('MySource') is prepopulated when you do a patch and there are errors, however you can manually add errors to it if you know what the rows have.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
198 | |
69 | |
47 | |
36 | |
25 |
User | Count |
---|---|
239 | |
109 | |
89 | |
88 | |
66 |