Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

How to get the specific form from case entity to task entity

(1) ShareShare
ReportReport
Posted on by 5
  1. I have a entity called case entity and based on the field value on case I want to open the particular task form(task entity is having three customer form) and create the task. 
  • How to get the specific form from case entity to task entity
    This is the main issue i was facing before a very long time in a form of my project which based on shipping.shipping car to hawaii from east coast
  • singed1 Profile Picture
    singed1 10 on at
    RE: How to get the specific form from case entity to task entity

    The plot of the game is extremely simple, users just need to touch the screen to control the bird to overcome the obstacles. Flappy Bird However, when you step into the game, you will feel that it is "unreasonably difficult" and just like that you are absorbed in the game, you frantically plow the country in inhibitions and anger...

  • singed1 Profile Picture
    singed1 10 on at
    RE: How to get the specific form from case entity to task entity

    The plot of the game is extremely simple, users just need to touch the screen to control the bird to overcome the obstacles. [Flappy Bird](https://flappy-bird.io)   However, when you step into the game, you will feel that it is "unreasonably difficult" and just like that you are absorbed in the game, you frantically plow the country in inhibitions and anger...

  • maiharrison Profile Picture
    maiharrison 5 on at
    RE: How to get the specific form from case entity to task entity

    The major problem we all are facing now a days, i am a regular reader of your page and in my every time visit i mens biker leather jackets explore and get something different. Hopefully will resolve these issues soon as possible.

  • Alan Frost Profile Picture
    Alan Frost 5 on at
    RE: How to get the specific form from case entity to task entity

    No, it doesn't work out. I already tried it out on my site https://100dollarsresume.com/ Instead, you should try the HTML form or elementor form.

  • kristinburger Profile Picture
    kristinburger 5 on at
    RE: How to get the specific form from case entity to task entity

    Hey i am kristin! Have a nice day! I saw your page and want to discuss right now the main problem is occurring in my blog Samsung Phone Repair Services form. But getting fail to sort out this problem. 

  • rosaanderson Profile Picture
    rosaanderson 5 on at
    RE: How to get the specific form from case entity to task entity

    This is the main issue i was facing before a very long time in a form of my project which based on fashion shearling coats and jackets . And i want to resolve me. Please guide me. Please contact on my profile. 

  • EmmaSparks Profile Picture
    EmmaSparks 5 on at
    RE: How to get the specific form from case entity to task entity

    I am also having this problem in the form of the website genie resumes USA I am working on. Can I use open form method here to make things right?

  • Bipin D365 Profile Picture
    Bipin D365 28,959 Super User 2024 Season 1 on at
    RE: How to get the specific form from case entity to task entity

    Hi,

    You can try below code -

    Function OpenTask()
    
    {
    
    var entityFormOptions = {};
    
    entityFormOptions["entityName"] = "task";
    
    entityFormOptions["formId"] = "D5B4A1B2-DE4F-4F86-8768-B0730001E7D1";
    
    // Open the form.
    
    Xrm.Navigation.openForm(entityFormOptions).then(
    
       function (success) {
    
           console.log(success);
    
       },
    
       function (error) {
    
           console.log(error);
    
       });
    
    }
    
    

    entityFormOptions["formId" = "D5B4A1B2-DE4F-4F86-8768-B0730001E7D1";

    You can get formId from Settings->Customization->Customize the system->Entity->Task->Form->Open specific form then copy the id from url

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get the specific form from case entity to task entity

    Hi Pratices,

    You could use openForm method to open task form. Something like the following code:

    function openTaskForm(executionContext){
    	var formContext = executionContext.getFormContext();
    
    	// Get value
    	var field_value = formContext.getAttribute("[your field name]").getValue();
    
     	var formId = "";
    	if(field_value != null){
    		if(field_value === "value1"){
    			formId = "formId1";	
    		}else{
    			formId = "formId2";	
    		}
    		var entityFormOptions = {};
    		entityFormOptions["entityName"] = "task";
    		entityFormOptions["formId"] = formId;
    		var formParameters = {};
    		// Open the form.
    		Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
        			function (success) {
            			console.log(success);
        			},
        			function (error) {
            			console.log(error);
        		});
    	}else{
    		//do something
    	}
    }
    

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans