cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chris61
Helper II
Helper II

Patching an option set works on desktop but not on mobile

Using the below formula in desktop PowerApps the 'Type of Logger' field in the data source (CDS) is updated with the relevant option set value (it is selected on a dropdown elsewhere in the app).

 

However, when publishing and using the app on mobile the Patch works but the option set value for 'Type of Logger' does not update in the datasource with any information and no clue as to why this is.

 

Any ideas? Thanks.

 

Patch(
'Logger Deployments',
Defaults('Logger Deployments'),
{
Address: Address,
'Date Deployed': DateDeployed,
'Type of Logger': ssplc_typeoflogger.Value
}
);

4 REPLIES 4
chris61
Helper II
Helper II

I have also tried the following: 

 

'Type of Logger': LookUp(Choices('TW Types of Logger'), Value = ssplc_typeoflogger.Value).Value,

 

Again: works on desktop, not on mobile.

Now I've tried patching it directly with a value instead of using logic/filtering:

 

'Type of Logger': 'TW Types of Logger'.Forensic,

 

Once again: works on desktop, not on mobile.

v-siky-msft
Community Support
Community Support

Hi @chris61 ,

 

Do you want to patch option set field to CDS?

 

I have made a test both on PC and mobile, and both of them can be patched successfully.

My formula:

Patch(Accounts,Gallery1.Selected,{TestOption:'TestOption (Accounts)'.'2'})

PCPCMobileMobile

So it seems to be not easy to reproduce your issue, could you create a new option set field, and have a try again to check if your issue is gone?

Best regards,

Sik

 

Thank you for your reply. Having conducted further testing what I'm finding is that the option set updates when it is triggered using an OnSelect event of a button, however, it does not work using OnTimerEnd on a Timer. Why would this be?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,771)