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" })
		]
	
	);

  • DavePinch Profile Picture
    on at
    RE: Filter Lookup View In AlertJS Dialog

    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.

  • Suggested answer
    Nya Profile Picture
    29,060 on at
    RE: Filter Lookup View In AlertJS Dialog

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Siv Sagar Profile Picture

Siv Sagar 104 Super User 2025 Season 1

#2
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 51 Super User 2025 Season 1

#3
Engy Louis Profile Picture

Engy Louis 31

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans