Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Service Account Owning Records

  • 1.  Service Account Owning Records

    Posted Aug 02, 2019 03:20 PM
    Anyone experienced the issue when a service account creates and owns the records for a business unit, any user in that business unit can create a new record if they update the current record owned by the service account. We have some java script that auto creates records to help the end users. The process is user completed maintenance work in dynamics 365 online...select save...new record auto creates with the service account as the owner...Work Beautifully.

    The issue is when a user completed maintenance work in dynamics 365 online...select save...the new record is never created with the service account as the owner.

    Any idea if we missed something in the role set up?

    ------------------------------
    Sharee Anderson
    Information Technology Web Applications Manager
    Vertex Aerospace
    Madison
    ------------------------------
    Conference-CRMUG_200x200


  • 2.  RE: Service Account Owning Records

    SILVER CONTRIBUTOR
    Posted Aug 05, 2019 09:41 AM
    Hi Sharee,

    I am not sure to understand the difference between the 'Work beautifully' process and the issue. Could you precise the expected behavior?

    It seems you want automatically created records to be owned by a service account. I know how to do this from a workflow or a plugin (as execution impersonation can be configured -  the 'execute as' field).

    Using webapi from JScript, you could try using this:
    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/impersonate-another-user-web-api


    ------------------------------
    Fabien Bernard
    CRM Developer
    Montréal QC
    ------------------------------

    Conference-CRMUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role