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 :
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,060 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
    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

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 53 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans