Website to CRM

Aug 1, 2014 at 5:20 PM
Edited Aug 1, 2014 at 5:35 PM
Hello,

I'm trying to pass data from one HTML page to the CRM.

I've tried to manage that by two ways so far;

First One

1.In Standard Web Application I am running an UII Action (FireEvent).

Application: Standard Web Application
Action: FireEvent
Data: name = NewContact
         varName = [[$Scriptlet.getValue]]
         Data = varName

2. The scriptlet is called.

Name: getValue
function getValue ()
{
return document.getElementById ("Name") value.;
}

3. The Event is called passing the varName as parameter

Application: CRM Page
Action: New_CRM_Page
Data: LogicalName = contact
            firstname = [[varName]]

This failure occurs in the flow of call Scriptlet (Step 1).

Second One

1. At Global Manager create a variable in Context

Application: Global Manager
Action: CopyToContext
Data: varName = name

2.In Standard Web Application I run the following script

Application: Standard Web Application
Action: RunScript
Data: function getValue ()
           {
             [[$Context.varName]] = document.getElementById("Name")value.;
           }

3. New Contact
Application: CRM Page
Action: New_CRM_Page
Data: LogicalName = contact
            firstname = [[$Context.varName]]

In this flow the problem is that in the second step the value of the context variable is not changed.

If anyone knows how to replace the value of the variable ... my problem is solved!

Help! : D