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 :
Microsoft Dynamics CRM (Archived)

Autopopulating a field when a Case is created

(0) ShareShare
ReportReport
Posted on by

I’m new to CRM and am trying to get a field in our Case entity to autopopulate with data from the Account entity. When we create a new Case, we have a custom field called Account Executive that we need to populate with the value in the Owner field from the Account entity. Since the Case is assigned to an Account, I imagine this should be straightforward, but I haven't found a way yet.

Thanks

*This post is locked for comments

I have the same question (0)
  • Royal King Profile Picture
    27,686 on at

    Create a workflow and add a step to assign case to account records Executive.This should be very simple workflow.

  • Suggested answer
    Mamatha Swamy Profile Picture
    5,426 on at

    Create a synchronous workflow to run on Create of Case and then use "Update" step to assign the Account's owner field to the "Account Executive" field on case.

    Refer blog below for a sample on creating synchronous workflow

    blog.clickdimensions.com/.../using-real-time-synchronous-workflows-in-dynamics-crm-2013.html

    Refer Workflow2 in this blog for a sample on using update step

    www.powerobjects.com/.../microsoft-dynamics-crm-workflow-for-copying-addresses

  • Suggested answer
    VMarques Profile Picture
    200 on at

    Hello Michael,

    You could also do Relationship Mapping on your "Account Executive" field which will not required a workflow.

    Here is a link to help to get a better understanding on Relationship Mapping.

    www.powerobjects.com/.../microsoft-dynamics-crm-relationship-mappings-help-keep-customer-and-bill-to-customer-consistent

  • Aileen Gusni Profile Picture
    44,524 on at

    Michael,

    If your way created the Case is from Account -> Then add new Case then it should be achieved using relationship mapping between Account and Case like what VMarques did mention.

    if not, then you can use the workflow like suggested by Chitra and Mamatha.

    Hope this helps.

    Thanks.

  • Community Member Profile Picture
    on at

    Two great methods have been proposed - use field mapping (but this only works if a user creates a Case from inside the Account record), or use a workflow (but his could frustrate users that they cannot see the information when they do create Cases from the right place).

    I would always suggest to do both here, to get the best possible experience.

    Also, in your workflow, I would suggest the first step should check if the Account Executive field is already filled in, then Stop and do nothing so you don't overwrite it again (because this would also change the "modified on" and "modified by" fields).

  • Suggested answer
    vinod shivoor Profile Picture
    1,225 on at

    Hi Michael,

    This is possible using the Odata Query, create a new HTML web resource,

    follow the link. jqueryui.com/autocomplete

    in the source code instead of the "source: availableTags"

    you have to provide the array containing the account names, this can be done by Odat query.

    var retrieveRecordsReq = new XMLHttpRequest();      

         var ODataPath ="0.0.0.0/.../LeadSet$filter=CompanyName ne null and FullName ne null";      

         retrieveRecordsReq.open('GET', ODataPath, false);

         retrieveRecordsReq.setRequestHeader("Accept", "application/json");

         retrieveRecordsReq.setRequestHeader("Content-Type", "application/json; charset=utf-8");

         retrieveRecordsReq.send(null);

         var records = JSON.parse(retrieveRecordsReq.responseText).d;

    change the code according to requirement.

    please mark as verified if this helped you.

    Regards,

    Vinod

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans