Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Web to case setup

Posted on by 218
Hi
 
I am unable to setup web-to-case in crm. Dont we have optin in dynamics crm. Can some help on that...
 
 
Thanks
Phani.
 
 
  • phanikumar Profile Picture
    phanikumar 218 on at
    Web to case setup
    Hi Dengliang Li,
     
    I have one issue posted on community, can you please suggest for the below question.
     
    Thanks 
    Phani.
  • phanikumar Profile Picture
    phanikumar 218 on at
    Web to case setup
    Hi Dengliang Li,
     
    Thanks for your idea of html and sample code, its working.
     
     
  • Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Web to case setup
    Hi,
     
     
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Web to case setup
    Hi,
     
    In my test, I created a static HTML form page locally.
    In CRM, request data is accepted via flow and transformed into case records.
     
    The code is shown below:
    <body>
        <form action="#" method="post">
            <div><label for="subject">Subject: </label><input type="text" name="subject" id="subject"></div>
           <div><label for="customer">Customer: </label><input type="text" name="customer" id="customer"></div>
            <br>
            <button type="submit">submit</button>
        </form>
    </body>
     
    <script>
        var form = document.querySelector("form");
     
        form.addEventListener("submit",(e)=>{
            e.preventDefault();
     
            //This URL comes from the flow trigger when an HTTP request is received.
            const url="<HTTP POST URL>";
           
            const xhr = new XMLHttpRequest();
            xhr.open("POST",url);
            xhr.setRequestHeader("Content-Type","application/json");
     
            let body={
                "subject":document.forms[0]['subject'].value,
                "customer":document.forms[0]['customer'].value
            }
            xhr.send(JSON.stringify(body));
        })
    </script>
    The flow is shown below.
     
    Additionally, if you want to convert marketing form submission data into custom entity records, you can refer to the following link.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     
  • phanikumar Profile Picture
    phanikumar 218 on at
    Web to case setup
    Hi Dengliang Li,
     
    Something similar to web to lead. just to have html code and on submission case to be created on CRM.
     
  • Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Web to case setup
    Hi,
     
    Could you clarify in detail what the web is referring to?
    The automatically create of update records supports the conversion of the following activities to cases.
     
    Best Regards,
    Dengliang Li
     
     
     
     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans