function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how can we know if the case is created from salesforce1 or not?

A case record is created in case object, i have to write a trigger if the case is created from salesforce1?
How can we achieve this?
Best Answer chosen by rebvijkum
SonamSonam (Salesforce Developers) 
What you could try is:
Create a global publisher action for users to create a case and have a field like say : source where user can choose it to be salesforce1 and have this field read only/required on the publisher layout such that you can distinguish these cases coming from salesforce1.