From a Powerapps form, with an Attachment object.
I'm submitting the Attachment first.
SubmitForm(frm_SpaAttachment_1)
Then in the on success of the "frm_SpaAttachment_1".
I'm trying to update the sharepoint record with more data.
Set(varLastID_frmSpa1, frm_SpaAttachment_1.LastSubmit.ID)
;
Set(varSqlIdedit, Value(TextInput5.Text))
;
Set(varGuidEdit, TextInput7.Text)
;
Patch(COSTSUPPORTREQUEST_SPA_ATTACHMENTS_POWERAPPS, LookUp(COSTSUPPORTREQUEST_SPA_ATTACHMENTS_POWERAPPS, ID = varLastID_frmSpa1),
{SQL_SERVER_ID: varSqlIdedit1,
CREATED_BY: User().FullName,
CREATED_DATE: Now(),
QUOTE_NUMBER: TextInput1_1.Text,
SUPPLIER_NAME: TextInput1_103.Text,
SUPPLIER_NUMBER: TextInput1_23.Text,
DIRECT_TO_CR: Dropdown1.Selected.Value,
SUPPORT_ID: varGuidEdit
}
)
;
ResetForm(frm_SpaAttachment_1)
Textinput5 and Textinput7 are holding values coming from a Datatable.(the datatable source is from sql server)
i.e.
dtbl_MyEntries_Main.Selected.CostSupportTool_id ---- This is Numeric value.
dtbl_MyEntries_Main.Selected.DE_GUID ---- This is a GUID id
Thanks
David