Hi
I would like to be able to Update a specific column value in my Dynamics 364 table based on the Column name selected in a Drop Dowm menu. Based on the value selected from the drop down, it will select proper columns to action on the Patch.
This portion: scl_tscauditrequestid = GUID(txTscAuditRequestNumber.Text) will search for the unique value.
Then, if i select a value in my Drop Down menu that equals a column name inside that table, Example: "slc_Comments:", when i will press on the button, it will put the value from txNewValue.Text into "slc_Comments" column of the row corresponding to unique value that equals
to GUID(txTscAuditRequestNumber.Text)
Patch(
'Audit dbase',
LookUp(
'Audit dbase',
scl_tscauditrequestid = GUID(txTscAuditRequestNumber.Text)
),
{
cbDbColumnSelection.Select.Value = txNewValue.Text
}
)
Above code does not work. But how can i do that?
Thanks for your help.