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)

Can not add Quote field into Quote Product form

(1) ShareShare
ReportReport
Posted on by 458

We all know that there is 1:N relation between quote and quote product.
And there is a field in quote product named quoteid, I mean 7288.11.JPG.

Now I want to code a javascript in Quote Product Form that need Quote ID.
I want to put quoteid field (that is a reference to the primary related quote) into the form.
But I can not see this field(quoteid) in the form fields, I mean in this 0830.12.JPG.
The quoteid field is not listed in the All fields, and If I want to create new lookup field, It creates new 1:N relation and I dont want this.
I tried another way to get  Quote Id by calling a REST, in this way :

var quoteProductGUID=Xrm.Page.data.entity.getId();
var firstReq = new XMLHttpRequest();
firstReq.open("GET", Xrm.Page.context.getClientUrl() + "/XRMServices/2011/OrganizationData.svc/QuoteDetailSet(guid'"+quoteProductGUID+"')?$select=QuoteId", true);
firstReq.setRequestHeader("Accept", "application/json");
firstReq.setRequestHeader("Content-Type", "application/json; charset=utf-8");
firstReq.onreadystatechange = function() {
    if (this.readyState === 4) {
        this.onreadystatechange = null;
        if (this.status === 200) {
            var result = JSON.parse(this.responseText).d;
            var quoteId = result.QuoteId;
			quoteId=quoteId.Id;
			
        } else {
            alert(this.statusText);
        }
    }
};
firstReq.send();
}



But it needs the quote product Id and when It has not created yet, It can not get the quote product Id.
So the question is how can I display quoteid field that already exist in the form.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi Albert Freedom,

    Can you please check once 'Quote' field after you unclick on "Only show unused fields". Its working fine for me.

  • Albert_ Profile Picture
    458 on at

    No chance sir, This is a System Required field and does not display.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    If I am not wrong, the field Quote (quoteid) is already added on the form and is also locked so you can't remove it from the form either. Plese check your current form (under pricing section). Refer below screenshot-

    quote123.png

    Hope this helps.

  • Albert_ Profile Picture
    458 on at

    For me, It does not exist!

    I will send my Screenshot !

  • Albert_ Profile Picture
    458 on at

    Here is 8244.13.JPG.

    No QuoteId.
    Is there any solution like xrmtools sitemap or something like that I can do that in another way?

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Is this a default/ out of box form or you have created this new?

  • Albert_ Profile Picture
    458 on at

    I have three forms, in non of them the quoteid does not exist !

    Even in the mobile form the quoteid is not appear in the fields list.

    I created new form, But no chance .

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    It is strange that it is neither on your form and nor in the field list. This is system field which you can't remove from the form UI. Can you share a screenshot to showing all your forms?

  • Albert_ Profile Picture
    458 on at

    In the general fields list, the quoteid exist.
    But in the fields list of every form the quoteid does not exist.
    I have to web form.
    Here is what I see.
    One named Information and here it is :


    18.JPG

    16.JPG

    Another named Product Form and thats it :
    6663.17.JPG

    18.JPG

  • Albert_ Profile Picture
    458 on at

    Again thank you for your reply, Is there any other way to add fields to the form?

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