Hi everyone,
I have received the task of updating a Canvas App from one of my former colleagues, but when I copy the new Canvas App from DEV to PROD it does not work.
I have narrowed it down to the difference of ThisItem.Contact on DEV and TEST and ThisItem.'Contact (contactid)' on PROD.
This works on DEV and TEST:
Select(Parent);
Set(
CustomerSelected,
GUID(ThisItem.Contact)
);
Navigate(Customer_overview);
And this works on PROD:
Select(Parent);
Set(
CustomerSelected,
ThisItem.'Contact (contactid)'
);
Navigate(Customer_overview);
But using the syntax from PROD on DEV or TEST gives me the following error:
Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app.
Hovering on ThisItem, tells me in both DEV and PROD that is of Data type Record:
But on my DEV and TEST environment 'Contact (contactid)' is not possible as a selection if I start typing ThisItem. and then wait for the Autocomplete helper at the bottom of the function window.
This is the Autocomplete from DEV:
And this is from PROD:
I have used the excellent Power Apps Language Tool: https://github.com/microsoft/PowerApps-Language-Tooling to export Canvas App from both PROD and DEV, and can see that all changes relate to PROD having one syntax and DEV/TEST has another.
Is there some setting I can check across environments to check why there is a discrepancy.
Regards,
Michael

Report
All responses (
Answers (