Hi,
I am new to Powerapps. I am working on a powerbi report where a Powerapp is integrated inorder to get the inputs from the user and save it to the SQL database. As per the existing logic, a 'product_id' column (Integer) from the powerbi report is used as 'Powerapps data' based on which the Powerapps gets the user comment and stores the data into the database.
The sample for the existing Powerapps code is:
Collect(
'[Comments_source]',
{
id: Blank(), //this autoincrements as it is identity column in db
product_id: Max(PowerBIIntegration.Data, product_id), // Code change required
comments: textcolumn.SelectedText.Reason,
username: User().Email,
}
);
But in this scenario there is a change happening for the "product_id" column where it also has to accept the characters. So the source table changed this column datatype from 'int' to 'varchar'. But this change caused an issue with the PowerApps because it requires a code change in order to accept this data as varchar. So this needs a code change in the line where it gets the product_id. The Max function is no more valid because it is running against a varchar column.
Could anyone please help with this.