Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how to set the Name of activity as “Customer Name – Purpose – Status”

Posted on by Microsoft Employee

Hey,

I need to know how to set the name of activity as “Customer Name – Purpose – Status”  in CRM 2016.

Thank you

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    thank you so much

  • Kristian Cole Profile Picture
    Kristian Cole 290 on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    No your function works.

    Make sure those fields are filled.

    Make sure you refresh the page.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    the function as I sent to you and I'm putting it on save..

    but the problem I don't know how to make the activity appear as “Customer Name – Purpose – Status” when saving the form.. there's a missing points in my function I don't know what is it..

    Thank you so much

  • Kristian Cole Profile Picture
    Kristian Cole 290 on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    Ok how are you triggering the script?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    I already fixed it, but it's still not working...

  • Kristian Cole Profile Picture
    Kristian Cole 290 on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    that looks fine. cant see any issues other than the spelling on:

    var customername=Xmr.Page.getAttribute("new_customer").getValue();

    var purpose=Xmr.Page.getAttribute("new_purpose").getValue();

    var status=Xmr.Page.getAttribute("new_status").getValue();

    it should be:

    var customername=Xrm.Page.getAttribute("new_customer").getValue();

    var purpose=Xrm.Page.getAttribute("new_purpose").getValue();

    var status=Xrm.Page.getAttribute("new_status").getValue();

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    function setname()

    {

    var customername=Xmr.Page.getAttribute("new_customer").getValue();

    var purpose=Xmr.Page.getAttribute("new_purpose").getValue();

    var status=Xmr.Page.getAttribute("new_status").getValue();

    // here i didn't know how to link it

    Xrm.Page.getAttribute("name").setValue("Customer Name – Purpose – Status");

    }

  • Kristian Cole Profile Picture
    Kristian Cole 290 on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    can you put the entire javascript file on here for me to have a look at?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    yes i know the script line but the function is not working with me..

  • Kristian Cole Profile Picture
    Kristian Cole 290 on at
    RE: how to set the Name of activity as “Customer Name – Purpose – Status”

    Hi Iman, did you try that script line I put above?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans