Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

VBSCRIPT (Integration manager)

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VBSCRIPT (Integration manager)

    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!.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VBSCRIPT (Integration manager)

    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

  • L Vail Profile Picture
    L Vail 65,271 on at
    RE: VBSCRIPT (Integration manager)

    Where are you attaching your code?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VBSCRIPT (Integration manager)

    Hi the error is:

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

  • L Vail Profile Picture
    L Vail 65,271 on at
    RE: VBSCRIPT (Integration manager)

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans