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 GP (Archived)

VBSCRIPT (Integration manager)

(0) ShareShare
ReportReport
Posted on by

Hi.

How can I insert a specific field in the integration manager for this code?.

Example:

Command.Parameters.Append(Command.CreateParameter("@PropertyValue", 200,1, 133, "integration manager field"))

set connectionPuma = CreateObject("ADODB.Connection")
set command =  CreateObject("ADODB.Command")

connectionPuma.ConnectionString = "Provider=SQLOLEDB.1;Password=123456;Persist Security Info=True;User ID=test;Initial Catalog=Development;Data Source=gemini"

connectionPuma.Open()
command.ActiveConnection = connectionPuma
command.CommandText = "sp_InsertarFacturaMagaya"

command.CommandType = 4
Command.Parameters.Append(Command.CreateParameter("@ObjectType", 200, 1,31, "SOP"))
Command.Parameters.Append(Command.CreateParameter("@ObjectID", 200, 1,61,SourceFileds("Type.invoice")))
Command.Parameters.Append(Command.CreateParameter("@PropertyName", 200,1, 31, "GUID"))
Command.Parameters.Append(Command.CreateParameter("@PropertyValue", 200,1, 133, "TESTING"))

command.Execute()
connectionPuma.Close

*This post is locked for comments

I have the same question (0)
  • L Vail Profile Picture
    65,271 on at

    Are you talking about a field that is not available for import? What error message are you getting? What table are you using for the import?

    Kind regards,

    Leslie

  • Community Member Profile Picture
    on at

    Hi the error is:

    Source fields cannot be accessed during this phase of the integration.

  • L Vail Profile Picture
    65,271 on at

    Where are you attaching your code?

  • Community Member Profile Picture
    on at

    Look at the sample after the word sample, how can I insert a sourceFields from the IM?.

    Hi.

    How can I insert a specific field in the integration manager for this code?.

    Sample:

    -------------------------------------------------------------------------------

    Command.Parameters.Append(Command.CreateParameter("@PropertyValue", 200,1, 133, "SourceFields(a field from sales transaction)"))

    ------------------------------------------------------------------------------

    set connectionPuma = CreateObject("ADODB.Connection")

    set command =  CreateObject("ADODB.Command")

    connectionPuma.ConnectionString = "Provider=SQLOLEDB.1;Password=123456;Persist Security Info=True;User ID=test;Initial Catalog=Development;Data Source=gemini"

    connectionPuma.Open()

    command.ActiveConnection = connectionPuma

    command.CommandText = "sp_InsertarFacturaMagaya"

    command.CommandType = 4

    Command.Parameters.Append(Command.CreateParameter("@ObjectType", 200, 1,31, "SOP"))

    Command.Parameters.Append(Command.CreateParameter("@ObjectID", 200, 1,61,SourceFileds("Type.invoice")))

    Command.Parameters.Append(Command.CreateParameter("@PropertyName", 200,1, 31, "GUID"))

    Command.Parameters.Append(Command.CreateParameter("@PropertyValue", 200,1, 133, "TESTING"))

    command.Execute()

    connectionPuma.Close

  • Community Member Profile Picture
    on at

    Any help?.

    Well, I will sing if you don't help me, here I go:

    Somebody saaaaaaaaave meeee, let your warm hands break right throught it,

    Somebody saaaaaaaaave meeeee I don't care how you do it!.

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans