Outlook add in form post issue

Kumar Veerappan 1 Reputation point
2021-01-05T18:03:25.29+00:00

I am working on outlook add-in using Angular 10. Have an use case to do form post with body parameter. The body parameter getting passed without any issue from web outlook but the same it is not working from outlook client. A quick help on this will be a great help. Attached form post code that we are doing for your reference.

let form = document.createElement('form');
form.setAttribute('id', 'dynForm');
form.setAttribute('target', '_blank');
form.setAttribute('action', ${uri.origin}${uri.pathname});
form.setAttribute('method', 'post');
form.setAttribute('enctype','application/x-www-form-urlencoded');

        let input = document.createElement('input');
        input.setAttribute('type', 'hidden');
        input.setAttribute('name', 'auth');
        input.setAttribute('value', auth);            

        form.appendChild(input);            
        document.body.appendChild(form);
        form.submit();
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,684 questions
{count} votes