Hello All.
Im having an issue with using Submitform and patch in the same button action.
I need it to patch the user email of the person who is making the form, but i dont want to have that field in the form as it will be uselss and take up space.
I have tried doing the following below, but it will only do the form submit.
Should i just do a patch only? i like the form because it makes everything so much easier.
Concurrent(
Patch(
'PMBCR Data List',
Defaults('PMBCR Data List'),
{
Title: 'Title New Value Prop'.Text,
Requestor:
If(
IsEmpty('Requestor New Value Prop'.Selected) ||
IsBlank('Requestor New Value Prop'.Selected),
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Claims: "i:0#.f[membership|" & Lower(User().Email),
Department: "",
DisplayName: "",
Email: User().Email,
JobTitle: ".",
Picture: "."
},
'Requestor New Value Prop'.Selected
),
'Requestor Email':
If(
IsEmpty('Requestor New Value Prop'.Selected) ||
IsBlank('Requestor New Value Prop'.Selected),
User().Email,
Concat('Requestor New Value Prop'.SelectedItems.Email,Email)
)
}
),
SubmitForm('Form New Prop')
)
Solved! Go to Solution.
The form also create an item in 'PMBCR Data List' ? If so, in this case it should appear 2 rows one created by Patch and one created by the form.
I like the form because it makes everything so much easier.
Yes. You are so right !
I dont want to have that field in the form as it will be uselss and take up space.
You can hide the datacard (that's the right approach) and set the update property of the datacard(even if it is hidden it will work) to:
If(
IsBlank('Requestor New Value Prop'.Selected),
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Claims: "i:0#.f[membership|" & Lower(User().Email),
Department: "",
DisplayName: "",
Email: User().Email,
JobTitle: ".",
Picture: "."
},
'Requestor New Value Prop'.Selected
),
Hope it helps !
The form also create an item in 'PMBCR Data List' ? If so, in this case it should appear 2 rows one created by Patch and one created by the form.
I like the form because it makes everything so much easier.
Yes. You are so right !
I dont want to have that field in the form as it will be uselss and take up space.
You can hide the datacard (that's the right approach) and set the update property of the datacard(even if it is hidden it will work) to:
If(
IsBlank('Requestor New Value Prop'.Selected),
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Claims: "i:0#.f[membership|" & Lower(User().Email),
Department: "",
DisplayName: "",
Email: User().Email,
JobTitle: ".",
Picture: "."
},
'Requestor New Value Prop'.Selected
),
Hope it helps !
making the card invisible works i guess lol
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
71 | |
49 | |
41 | |
30 |
User | Count |
---|---|
266 | |
121 | |
95 | |
90 | |
81 |