I am a newbie to PowerApps and the flow automations. I am building a simple Canvas Power App that receives the user input then the JSON is composed and the JSON is posted to the Salesforce using the REST API through the flows. Submit button action is like below
Collect(
FormInfo, {
name: nameInput.Text,
title: titleInput.Text,
manager: managerInput.Text,
phoneNumber: phoneNumInput.Text,
email: emailInput.Text,
startDate: Text(startDateInput.SelectedDate),
roleProfileInfo: roleProfileInfoInput.Text,
userSubmitting: User().Email }
);
Set(FormObj,JSON(FormInfo));
SFNewUserRequest_1.Run(FormObj);
Reset(nameInput);
Reset(titleInput);
Reset(managerInput);
Reset(phoneNumInput);
Reset(emailInput);
Reset(startDateInput);
Reset(roleProfileInfoInput);
The user input is composed as JSON and sending it to the flow. I am not sure how I can add an upload file in the power app that needs to be sent to Salesforce through the REST service. Most of the examples out there are doing the loading the file to Sharepoint library, I just wanted to know if this is also ossible.