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 :
Microsoft Dynamics CRM (Archived)

Get/ Access input from User - Either Action or Dialog

(0) ShareShare
ReportReport
Posted on by

Hi,

On click of button in one entity, I'm able to create n-multiple records at time by using default value n in JavaScript &Web API SOAP Services.

To improve this solution, I want to take input from user and create only those many records which user wants - not by default value in logic.

I'm able to call action or dialog to run and take input parameters FROM User. After that, how to take those input into same JavaScript and not storing anywhere.

   Can anyone help me in this situation ? How to access input parameter after calling dialog in JavaScript?

P.S ->I know Workflow can create records after dialog but I know how to do using JavaScript ?

Thank you

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    I don't quite follow you - are you trying to pass some data into an action that you want the user to provide?

    If so, you'll need to create an HTML webresource with some fields on it which you pass into the action call.

    You might like to check out my Client User interface project for Dynamics - www.sparklexrm.com

  • Community Member Profile Picture
    on at

    Thank you for your reply. No, I was trying to say that If user clicks on button , then trying to take input number from user(either with action or dialog) and based on input number , I will create those many records in another entity. So whatever user entering into action or dialog input parameters , I want to access that number in JavaScript after calling action or dailog?

    I hope with this explanation, may understand the problem and have any suggestion to solve this problem ? let me know

    Deepthi  

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Deepthi,

    You could write the code below.

    Process.callAction("new_dosomething",
        [{
            key: "Target",
            type: Process.Type.Int,
            value: 5
        }],
        function (params) {
            // Success
            for (var i = 0; i < params.length; i++) {
                alert(params[i].key + "=" + params[i].value);
            }
        },
        function (e) {
            // Error
            alert(e);
        }
    );

    See: www.magnetismsolutions.com/.../Call-Action-in-CRM-2015-Easily-from-JavaScript-Library

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans