web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Filter Lookup View In AlertJS Dialog

(1) ShareShare
ReportReport
Posted on by 17

Hello

im using AlertJs For making Dialog in Dynamics 365 V9

https://github.com/PaulNieuwelaar/alertjs/wiki/Documentation-v3.0#getpromptresponses

One of prompt field i used its lookup which i want to filter  its view

but it not working

im using this dialog in Quote And I want to lookup view  just show Quote Products of Related Quote Not all of them

please help me

 
 

  var quoteName = Xrm.Page.getAttribute("name").getValue();
	  var quoteId = Xrm.Page.data.entity.getId();
	 var fetchXML = "";
					 
	  var quoteFilter =
	  {
		 filterXml : fetchXML,
		 entityLogicalName : "quotedetail"		
	  }
				   
	var options = 
	{
		id: "callForPrice",
		height: 320,
		width: 450,
		title: "Create Call For Price\n",
		message: "\nProvide the following information about Call For Price And Description For Purchase Person.",
		buttons: 
		[
			new Dialog.Button("OK", function(results)
			{
				data = 
				{
					"quoteDetail" : results[0].value[0].id,
					"Description" : results[1].value
					
				};
			    activateCustomAction(actionName,data)
			
			}, true),
			new Dialog.Button("Cancel")
		]
	};

	var dialogBase = new Dialog(options);

			
    dialogBase.showPrompt
	(
		[
		new Dialog.Lookup({ id: "quoteDetailLookUp", label: "Quote product", entityTypes: ["quotedetail"] , filters : [quoteFilter] }),
		new Dialog.MultiLine({ id: "Description", label: "Description" })
		]
	
	);

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,064 on at

    Hi Alee,

    It is recommended to use a Client API called addCustomView to create lookup view in Dynamics.

     

    Here is an example:

    addCustomView – Arvind's CRM Blog (arvindcsit.blog)

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • DavePinch Profile Picture
    Microsoft Employee on at

    Hi Alee, this forum is for Dynamics 365 Remote Assist, a holographic app for collaboration. I'm not familiar with that API but if you give me an idea of the Dynamics product(s) you are using, I can suggest another forum or move this posting for you. Hopefully that will get you visibility and an answer.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
FSRon Profile Picture

FSRon 59

#2
James White Profile Picture

James White 21

#3
AT-28040446-0 Profile Picture

AT-28040446-0 20

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans