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)

get information from one entity to another

(0) ShareShare
ReportReport
Posted on by
hello experts,

As the title clearly states, I am trying to pass some fields of opportunity to another entity.

1_5F00_pantallazo.png
the flow would be the following: - I am looking for a new opportunity in the contract entity. - when selecting the opportunity I am charged some fields that already exist in the opportunity any answer would be very helpful. Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Camilo,

    If you don't want to write code you can use real time workflow to populate mentioned fields. The only downside of this that values will be shown after record is saved.

  • Community Member Profile Picture
    on at

    Hello, thanks for answering.

    How could I do it with javascript?

    regards

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    If you want to use JS you should build proper query and CrmRestBuilder (just google it) can help you to do it and using Xrm.Page.getAttribute("<field name>").setValue(new field value); you can set values from related opportunity. Good luck.

  • Community Member Profile Picture
    on at

    Only using Xrm.Page.getAttribute ("<field name>"). SetValue (new field value); I can work?

    Sorry but I've been working with crm for a short time

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    We're all started from something. Here is article that describes attributes - msdn.microsoft.com/.../gg334409.aspx

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    What I understand from your question that when you select any opportunity in the lookup you want to get some value from selected opportuity and set to same value in contract entity.

    If my understanding is correct , you need to write a js function which will fire onchange of lookup.

    In the javascript  function create Web api request which will retrieve the opportunity data and on success of web api get the data and set value to contract entity field.

    So download the CRMRestBuilder and make a query

    You can get help from here how to create webapi request.

    www.toplinestrategies.com/.../crm-rest-builder-useful-tool-working-crm-2016’s-web-api

    goutamdascrm.wordpress.com/.../why-dynamics-365-web-api

    Let me know if you have any query.

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    In addition to that you can look for this sample here: http://himbap.com/blog/?p=2874 here I am implementing similary type of requirement.

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