web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Identify (by device) how a record was created?

(0) ShareShare
ReportReport
Posted on by 519

Hey Folks,

Don't know if this is even possible or not, but doesn't hurt to ask!!  As we have users in our Org who use a laptop and/or an iPhone/Android device, we're trying to see when records are created which device they are created on.  Is there some sort of identifier that captures that?  Or if not, can something like that even be created?  Like I said, not sure it's possible, but...

Thanks in advance!

Joe

I have the same question (0)
  • Suggested answer
    NODAL Profile Picture
    860 on at

    Hi Joe,

    I don't think there is any existing mechanism that stores this information at record level, however you can refer some Analytics from admin.powerlatform.com (ref.  docs.microsoft.com/.../analytics-common-data-service which will provide details based on overall system.

    However to create something like that you can follow below steps(for New Records).

    1. Create a new field (Single line text ) to store the device type for required table.

    2. Write a script and call it onLoad of Form.

    function UpdateDeviceTypeOnLoad(executionContext){

    var formContext = executionContext.getFormContext();

    if(formContext.ui.getFormType() === 1) // 1 = create

    {

    var clientContext = Xrm.Utility.getGlobalContext().client;

    var kindofDevice= clientContext.getFormFactor();

    switch(kindofDevice){

    case 0 :

    formContext.getAttribute("NEWFIELD").setValue("Unknown");

    break;

    case 1 :

    formContext.getAttribute("NEWFIELD").setValue("Desktop/Laptop");

    break;

    case 2 :

    formContext.getAttribute("NEWFIELD").setValue("Tablet");

    break;

    case 3 :

    formContext.getAttribute("NEWFIELD").setValue("Mobile");

    break;

    default:

    formContext.getAttribute("NEWFIELD").setValue("Unknown");

    }

    }

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans