Run a codeunit nav 5.0 in c # 2010

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 1 verified solution | 5 Replies | 1 Follower

Male
4 Posts
30 Points
Joined: 2012-10-22
Last Online:
2012-11-5 15:37
Location: Manta, Ecuador
Santiago Alava posted on 2012-10-22 23:34

Hello I am new nav 5.0.

I have made ​​an application with c # and I need to run a codeunit from NAV 5.0, need necessarily do with nav 5.0

Or find a way to be able to communicate from c # to nav and access a codeunit.

Thank you very much hope I can help.

Solution (Verified) Verified Solution

3,992 Posts
87,630 Points
Joined: 2009-2-17
Last Online:
2013-5-24 8:00
Location: New Delhi
DynamicsNAVMVP
Moderator

All Replies

Male
6,752 Posts
156,978 Points
Joined: 1995-10-1
Last Online:
2013-5-24 7:17
Location: Middelfart, Denmark
DynamicsNAVMVP
SystemAdministrator
Solution (Not Verified) Erik P. Ernst replied on 2012-10-22 23:47
Suggested by Erik P. Ernst

With Dynamics NAV 5.0 you cannot run a NAV codeunit outside of NAV.

But you could do it with NAV 2009 (NAV 6.0), where you can use the Web Services functionality, which allow you to call codeunits. You don't need to do a full upgrade, but can do an "executable" upgrade, where the exe-files etc. is the only thing being updated. This way you can use the three tier architecture of NAV 2009, where the web services are available.

Best regards,
Erik P. Ernst
Webmaster 

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

3,992 Posts
87,630 Points
Joined: 2009-2-17
Last Online:
2013-5-24 8:00
Location: New Delhi
DynamicsNAVMVP
Moderator
Male
4 Posts
30 Points
Joined: 2012-10-22
Last Online:
2012-11-5 15:37
Location: Manta, Ecuador
Santiago Alava replied on 2012-10-25 19:26

Thanks Mohana and Erick.

Thanks for the Links, I'm trying to follow these steps, although I have not managed to do so completely.

Now I have trouble wanting to configure NAS, to run the event viewer I catch this error:

"You do not have permission to run the 'codunitConex' codeunit.Contact the system manager if you need to Have Your permissions changed. "

Since all permissions granted to the user with which I connect to navision and nothing. I would greatly appreciate if you can help me.

Male
6,752 Posts
156,978 Points
Joined: 1995-10-1
Last Online:
2013-5-24 7:17
Location: Middelfart, Denmark
DynamicsNAVMVP
SystemAdministrator
Erik P. Ernst replied on 2012-10-25 19:31

You need to have access to this codeunit in your license.

Best regards,
Erik P. Ernst
Webmaster 

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Male
4 Posts
30 Points
Joined: 2012-10-22
Last Online:
2012-11-5 15:37
Location: Manta, Ecuador
Santiago Alava replied on 2012-10-25 23:19

 

thanks for the tips. run the codeunit achieved by changing the id to a range.

So far I have managed to make communication from C # to nav 5.0 with the links I provided. Thank you very much to all Big Smile

 

Page 1 of 1 (6 items) | Get this RSS feed | Bookmark and Share