Hi,
I am getting the error on my patch -
Patch('data source',
{ID: gblRecordID},
{'Date Change Made': Today() }
);
How can I fix this?
Hi,
I am getting the error on my patch -
Patch('data source',
{ID: gblRecordID},
{'Date Change Made': Today() }
);
How can I fix this?
@wonka1234 - avoid "chaining" the Patch and Submit Form functions together.
The Patch statement should be moved on the OnSuccess property of the Form. You can also update the global variable at the same time with:
Set(gblRecordID,
Patch('data source',
{ID: gblRecordID},
{'Date Change Made': Today() }
));
So onselect of a button i do this -
Patch('data source',
{ID: gblRecordID},
{'Date Change Made': Today() }
);
SubmitForm(EditForm1_1),
But submit form also does submit this field Date Change Made.
So should i just comment out the Update on this datacard and let the patch do the work?
@wonka1234 - typically this is caused when a change is being made to the same record from two different operations. For example running a Flow prior to the Patch, or submitting different Forms which are corrected to the same list etc.
WarrenBelz
146,695
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,015
Most Valuable Professional